users@glassfish.java.net

Quercus 4 on Glassfish 3

From: Serge Fonville <serge.fonville_at_gmail.com>
Date: Sun, 20 Dec 2009 01:22:15 +0100

Hi,

I'm trying to setup Glassfish 3 to support PHP.
In the past I used Glassfish 2.1 with Quercus 3.1

I tried all the guides that google would tell me about.

Basically these steps were suggested
Copy all files from WEB-INF/lib to $GLASSFISH/domains/domain1/lib
edit $GLASSFISH/domains/domain1/config/default-web.xml to contain:

<servlet>
  <servlet-name>Quercus Servlet</servlet-name>
  <servlet-class>com.caucho.quercus.servlet.QuercusServlet</servlet-class>
  <iinit-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>index.html</welcome-file>
  <welcome-file>index.htm</welcome-file>
  <welcome-file>index.jsp</welcome-file>
</welcome-file-list>

When I add a index.php to $GLASSFISH/domains/domain1/docroot
Nothing happens when I open http://localhost:8080
When I open http://localhost:8080/index.php it shows the source code

When I dropped quercus-4.0.2.war in
$GLASSFISH/domains/domain1/autodeploy and then openen
http://localhost:8080/quercus-4.0.2/ everything worked as expect.

Are there any additional things I need to do to make this work?

Thanks a lot in advance!

Regards,

Sege Fonville

-- 
http://www.sergefonville.nl
Convince Google!!
They need to support Adsense over SSL
https://www.google.com/adsense/support/bin/answer.py?hl=en&answer=10528
http://www.google.com/support/forum/p/AdSense/thread?tid=1884bc9310d9f923&hl=en