PHP on Tomcat 8

user2227904 picture user2227904 · Dec 17, 2013 · Viewed 21.9k times · Source

I had found quite a few guides how to make PHP run on Tomcat, but all were on previous versions. I tried all of them and all I could manage to display is a blank page and the code is still not fired.

I understand that Tomcat is build for Java application and not PHP, but I need to find a way to do that with Tomcat 8. Does any of you know a resource that could help me with this? I tried the guides in the following links, but without luck:

http://tojackwu.blogspot.com/2008/10/php-5-on-tomcat-6-installation.html

http://php-java-bridge.sourceforge.net/doc/tomcat6.php

Any idea if this is possible with Tomcat 8 and how can I do it?

OS: Windows;

Answer

Brian Showalter picture Brian Showalter · Dec 17, 2013

Your best bet to run PHP on top of Tomcat is probably to download and install the Quercus WAR file. Quercus is a Java-based implementation of PHP 5, and it can be found at http://quercus.caucho.com/.