Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Quercus

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2014, 09:05 AM
evris evris is offline
Junior Member
 
Join Date: Jan 2014
Posts: 1
Default Apache with PHP + Glassfish + QuercusPHP

Hello,

I am facing an issue with php handling. I am having the following system.

Apache with PHP as a front end to Glassfish (I use mod_jk connector).
I also installed QuercusPHP on Glassfish.

Here is what is happening. From the moment I enabled PHP in apache whenever there is file with php extension in the URL it is handled by apache and I get “404 Not Found - The requested URL /q/index.php was not found on this server.”

For example if I request https://192.168.0.121/q/ I get the quercus welcome page. If I request https://192.168.0.121/q/index.php I get “The requested URL /q/index.php was not found on this server”. This happens to any .php file.

How can I resolve the issue? How can I prevent apache from handling every PHP file.

Thank you in advance,

Evris

Here is the web.xml of quercus

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>
<description>Caucho Technology's PHP Implementation</description>

<servlet>
<servlet-name>Quercus Servlet</servlet-name>
<servlet-class>com.caucho.quercus.servlet.QuercusServlet</servlet-class>

<!--
Specifies the encoding Quercus should use to read in PHP scripts.
-->
<!--
<init-param>
<param-name>script-encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
-->

<!--
Tells Quercus to use the following JDBC database and to ignore the
arguments of mysql_connect().
-->
<!--
<init-param>
<param-name>database</param-name>
<param-value>jdbc/test</param-value>
</init-param>
-->

<!--
<init-param>
<param-name>ini-file</param-name>
<param-value>WEB-INF/php.ini</param-value>
</init-param>
-->

<!--
Location of the license to enable php to java compilation.
-->
<init-param>
<param-name>license-directory</param-name>
<param-value>WEB-INF/licenses</param-value>
</init-param>
<init-param>
<param-name>ini-file</param-name>
<param-value>WEB-INF/php.ini</param-value>
</init-param>
</servlet>

<servlet-mapping>
<servlet-name>Quercus Servlet</servlet-name>
<url-pattern>*.php</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.php</welcome-file>
</welcome-file-list>
</web-app>
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:09 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.