Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am using Tomcat6 as a server and i want to run php5 application on tomcat . Is there anyway to configure tomcat6 to run php on it .?

I am using Ubntu 13.10 to run tomcat6

share|improve this question

closed as off-topic by Jenny D, cole, Ward, MadHatter, Nathan C Dec 3 '13 at 15:27

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Ward, Nathan C
  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – Jenny D, cole, MadHatter
If this question can be reworded to fit the rules in the help center, please edit the question.

4 Answers 4

Quercus is a Java implementation of PHP5.

share|improve this answer

Tomcat supports cgi. So it is possible to run php as cgi. It might not be the best idea, but it should be possible.

share|improve this answer

There are there files available which can configure tomcat6 to run php

these ara JavaBridge.jar ,php-script.jar ,php-servelet.jar .You can easily find these files on .Download these files and copy them to tomcat/lib folder restart tomcat6

write a test php file in your webapps folder and open it in your browser @localhost:8080/test.php Bingoo..!! it works

Reference here

share|improve this answer

PHP runs on Apache or on Nginx (via fastcgi). Those are two very common use cases. You can't run PHP on Tomcat.

Edit: tomcat doesn't run PHP natively and depending on your requirements you may want to consider alternatives such as Nginx or Apache.

share|improve this answer
Just check my answer for it . you can easily do it . – prateeak ojha Dec 3 '13 at 9:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.