arsenal
arsenal

Reputation: 24174

How can I configure PHP with my Tomcat

I have installed tomcat succesfully but if I want to use some php code. So where should I put this php code in my tomcat directory and how I can configure php with tomcat. Any suggestions or link will be appreciated..

Upvotes: 6

Views: 15898

Answers (2)

datasage
datasage

Reputation: 19573

PHP/Java bridge as mentioned in the other answer is one option. The other would be to use the PHP runtime built in Java called Quercus

Upvotes: 4

miku
miku

Reputation: 188114

Tomcat is a Java Servlet Container first - it wasn't built to run PHP natively. There are however adapters, which allow you to run PHP on Tomcat, e.g.

If you only need to run PHP, you might be better off using a LAMP like setup.

Upvotes: 4

Related Questions