You're right -- Apache Tomcat doesn't handle PHP especially well. It's designed to handle and execute code in java web applications built to the servlet spec very well though.

Think of Apache Httpd as a general web server -- it serves content very well and with the right modules can hand off some requests to interpreters like PHP and Perl. Apache Tomcat on the other hand specializes in providing a container and API for handling Java web applications -- which Apache Httpd doesn't do at all. As such, Tomcat Httpd can hand off requests for PHP and Perl to their interpreters but not nearly as well as Apache Httpd.

They can coincide on the same system as long as they are on different ports. If you want Apache Httpd to server content generated in Tomcat, you can use either mod_jk or Apache Httpd's reverse proxy

--David


Richard Dunne wrote:

Can someone please explain the fundamental difference between Httpd and Tomcat? I installed Tomcat 6, but it doesn't seem to be liking PHP a whole lot. Do I need to un-install Tomcat 6 and install Apache 2 on its own? Just a bit confused as I am trying to get Apache and PHP5 working together.
Any words of wisdom?
Thanks,

Richard


     
____________________________________________________________________________________
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to