On Wed, Feb 25, 2009 at 1:59 PM, michel <[email protected]> wrote:
> I am running Tomcat (finally got it set up!) , and I would like to run some
> PHP software on it also. I tried Quercus and ran into some bugs, seemingly
> because the Quercus implementation isn't complete.
>
> Has anybody really gotten a reliable PHP going on Tomcat?
>
>
> Thanks!
>
Yes, I'm using tomcat with php in a Linux Debian Lenny. I have a wiki
and in the same time my jsp aplications.
I get the tomcat-6 from apache webpage and install the php and php-cgi
package from the repositories from debian (via aptitude).
Then edit the file conf/web.xml:
<servlet>
<servlet-name>cgi</servlet-name>
<servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>cgiPathPrefix</param-name>
<param-value>php</param-value>
</init-param>
<init-param>
<param-name>executable</param-name>
<param-value>php-cgi</param-value>
</init-param>
<load-on-startup>5</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>cgi</servlet-name>
<url-pattern>/dev/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.php</welcome-file>
</welcome-file-list>
You can do it this in other plataform with any CGI.
Only you need one "executable" to convert the .php into html.
Saludos!
--
ItZtLi
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]