APACHE with PHP and Servlet Container

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
munnadee
Forum Newbie
Posts: 2
Joined: Tue Jul 03, 2007 2:27 am

APACHE with PHP and Servlet Container

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
munnadee
Forum Newbie
Posts: 2
Joined: Tue Jul 03, 2007 2:27 am

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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
Post Reply