PHP on Tomcat

W

whitteng

We are in the process of moving Apache HTTP Webapps to Tomcat and
discontinuing Apache HTTP (and the necessary connector) all
together so that we only need to support one Web server and can do awy
with
the HTTP/Tomcat mod2jk connector.

We have been succesful in this, including CGI apps - which
took some work, for everything except PHP. So far, we only use PHP for
Squirrel/Web mail, but we would like the option to use it more
generally in the future.

We tried using the php4-servlet
(http://wiki.apache.org/jakarta-tomcat/UsingPhp), it worked on the PHP
test page, but returned a blank page for Squirrelmail.

We also tried the PHP-Java Bridge
(http://php-java-bridge.sourceforge.net/). We followed the
instructions, but everytime we direct the java.ini config file to
Tomcat (e.g. comment out the "java.socketname" parameter and uncomment
the java.hosts= "127.0.0.1:8080" e.g., java.servlet = "On"
paramaters), the bridge will not start:

/etc/init.d/php-java-bridge start
Starting php-java-bridge: Error: java.socketname option not set in php
..ini file, see output of phpinfo().
[FAILED]

We don't see this covered in any documentation. We have tried both
PHP4 and PHP5 for both approaches.

So - we are about to give up on running PHP inside Tomcat and use
Apache HTTP server only for PHP apps, requring it to run on a
non-standard port, since Tomcat will be using port 80 - a very ugly
solution. Before we give up, has anyone had success running PHP within
Tomcat? If so - how? Any other suggestions on how to use just one
(preferably free and open) Web server for static pages, CGI, PHP and
Servlets?

Thanks,
Gary Whitten
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top