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.”

<!--
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>
-->