Cameron Sim wrote:

Thanks mate.

From: andrew <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
To: Tomcat Users List <tomcat-user@jakarta.apache.org>
Subject: Re: Tomcat with PHP?
Date: Tue, 19 Apr 2005 11:04:41 +0200

Dear Cameron,

You will need to use Apache with PHP, and use the Tomcat/ Apache connector so that apache pushes the requests through to tomcat....
(jkmod)....


Effectively you will have 2 seperate applications, and use the URLs/ browser requests to talk with each other


Also note that there is a "PHP servlet" for Tomcat (or any other JavaServlet/JSP container), but I have no information on the list of PHP modules supported by that config. It could be that that PHP servlet is just calling PHP CGI version (most likely), so anything you load will run. Calling any CGI from within a servlet is a definite slowdown and is to be avoided, if possible.


One thing also worth noting is that PHP is not thread safe. The core of PHP is (most likely) thread-safe, but a number of external libraries linked to PHP sub-modules are definitely not thread-safe. This forces us to run Apache 2.0 in Pre-Fork mode instead of full-blown Multi-Threaded. This in itself is not catastrophic, but is annoying. I don't know what are the benchmark comparisons between the two, but they must be in favour of MPM, otherwise Apache team would have dropped it a long time ago.

Bottom line - it would be nice if you could weed-out PHP from your application altogether and have a Tomcat-exclusively server.

Nix.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to