Page 1 of 1
APACHE with PHP and Servlet Container
Posted: Tue Jul 03, 2007 2:34 am
by munnadee
Hi,
I was wondering if anybody has used or tried configuring apache for both php and servlets/JSP. Could that be done without any conflict? Any suggestions or opinions would be highly appreciable
//NisE
Posted: Tue Jul 03, 2007 4:13 am
by Chris Corbyn
Yes, I have. You need Tomcat installed, then you use mod_jk to tie apache to it. Of course, tomcat will handle all your servlet/jsp needs for you rather than apache directly.
Posted: Tue Jul 03, 2007 4:52 am
by munnadee
d11wtq wrote:Yes, I have. You need Tomcat installed, then you use mod_jk to tie apache to it. Of course, tomcat will handle all your servlet/jsp needs for you rather than apache directly.
But, actually it is that, I am already hosting a <website so.and.so.net> on one server and I would like to host another website using the same server and with different host/path name. I have configured apache to load PHP module and I dont want to install apache-tomcat separately and run it on different port(POSSIBLE!!??).
I have PHP, APACHE and TOMCAT installed in my system. I want to know the extent how far I can configure TOMCAT to work with apache along with PHP module loaded and running! I hope you got my idea
Can you please leave few lines of hint how and where you can configure mod_jk in this installation?
//NisE
Posted: Tue Jul 03, 2007 5:33 am
by Chris Corbyn
You can do what you need to do by using mod_jk. It doesn't conflict with PHP in any way. From what I remeber, Tomcat will be running on port 8080 (or another port at your choice) then mod_jk proxies requests to/from it.
http://tomcat.apache.org/tomcat-3.3-doc ... howto.html