programmer
programmer

Reputation: 1094

Is it "OK" to add JSP/Tomcat support to an existing LAMP web server?

Is it possible to add JSP/Tomcat support to an existing LAMP web server? I never tried to do this before and was wondering if this was ok to do in a production environment or if it went against best practices.

I have a Debian webserver with a LAMP stack running Apache2. I have a few PHP websites but I would like to add a Java/JSP powered website like so:

/var/www/myphpsite
/var/www/myjspsite
/var/www/etc etc.

Thanks, Jason

Upvotes: 2

Views: 1268

Answers (2)

cherouvim
cherouvim

Reputation: 31903

Yes it's very OK. I do it all the time on high traffic sites where some components are PHP and others are Java based.

Make sure you also setup mod_status so you can monitor what the apache workers are working on.

Upvotes: 1

jbindel
jbindel

Reputation: 5635

There shouldn't be any inherent problems as long as you have the CPU and memory for it. The Tomcat instances would be running in a separate process from Apache HTTP server.

Just connected apache to Tomcat with mod_jk or mod_proxy_ajp.

Upvotes: 1

Related Questions