Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob James' Blog:
Configure Apache to run Tomcat and PHP
Jan 29, 2010 @ 12:20:03

Rob James has a new post looking at configuring Apache to run Tomcat and PHP together so you can have both Java and PHP apps running through the same Apache frontend.

Here is the scenario; you have a project that requires hosting a single website in a single web domain, but you have a mix of PHP applications and Java (or in my instance, GRAILS) applications that you need to run. [...] The problem is, that there is no good documentation to help you do this, so here I go!

His example sets up a site that will load static pages, run PHP applications, handle Java application requests without missing a beat. He starts from the very beginning - installing OpenSSH, vsftpd, MySQL, Apache, Java and Tomcat - all from packages on a Ubuntu linux installation. To connect Tomcat with Apache, you'll need to use the mod_proxy Apache module and configure the Tomcat server to listen on the right port.

tagged: apache tutorial tomcat java

Link: