tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peli <fabian...@gmail.com>
Subject Moodle & Tomcat
Date Wed, 20 Jun 2012 16:21:09 GMT
Tomcat version: 7.0.27 x64
SO: one with [linux debian 6] & other with [Windows 7]
Configurations: Using php/java bridge 6.2.1
------------------------------------------------------
Tomcat [conf/web.xml] extra configuration (+ added to file):
<web-app xmlns=... >
+ <listener><listener-class>php.java.servlet.ContextLoaderListener</listener-class></listener>
+ <servlet><servlet-name>PhpJavaServlet</servlet-name><servlet-class>php.java.servlet.PhpJavaServlet</servlet-class>
+ </servlet>
+ <servlet><servlet-name>PhpCGIServlet</servlet-name><servlet-class>php.java.servlet.fastcgi.FastCGIServlet</servlet-class>
+ <init-param><param-name>prefer_system_php_exec</param-name><param-value>On</param-value></init-param>
+ <init-param><param-name>php_include_java</param-name><param-value>Off</param-value></init-param>
+ </servlet>
+ <servlet-mapping><servlet-name>PhpJavaServlet</servlet-name><url-pattern>*.phpjavabridge</url-pattern>
</servlet-mapping>
+ <servlet-mapping><servlet-name>PhpCGIServlet</servlet-name><url-pattern>*.php</url-pattern></servlet-mapping>
...
</web-app>

---- I added this config to [WEB-INF/web.xml] in my app with the
following content:

<web-app>
<!-- Welcome files -->
<welcome-file-list>
<welcome-file>index.php</welcome-file>
</welcome-file-list>
</web-app>

------------------------------------------------------
THE PROBLEM IS ...

Moodle requires to create the resource directory outside of the
deployment directory [webapps], the moodledata directory is created
directly in [...\apache-tomcat-7.0.27\moodledata]
moodle upload files to that directory but in the course when you want
to download one of these files, it displays a 404 error resource not
found.

the files can be accessed from outside the webapps directory?

what I need to configure?

-- 

Néstor Fabián Peña Estrella
Tecnólogo en Sistemas de Información-Univalle
Estudiante Ingeniería de Sistemas-Unicauca
Miembro Core, Student Tech Club Unicauca.Net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message