PHP on Tomcat 8

I found several tutorials on how to get PHP to work on Tomcat, but they were all in previous versions. I tried all of them, and all I managed to display was a blank page, and the code still does not run.

I understand that Tomcat was created for a Java application, not PHP, but I need to find a way to do it with Tomcat 8. Do any of you know a resource that could help me? I tried the guides in the following links but no 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 this?

OS: Windows;

+6
source share
2 answers

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

+4
source

Please follow the manual: http://php-java-bridge.sourceforge.net/pjb/webapp.php

The above has been tested in TomEE, which is based on Tomcat

Please note that Tomcat 8 still contains an error. As a workaround, you will need to add an empty java directory to the zip file JavaBridgeTemplate.war:

drwxr-xr-x 0 31-Oct-2010 15:24:24 WEB-INF/ -rw-r--r-- 239 31-Oct-2010 15:20:30 WEB-INF/weblogic.xml drwxr-xr-x 0 31-Oct-2010 15:24:24 WEB-INF/lib/ -rw-r--r-- 436954 31-Oct-2010 15:24:24 WEB-INF/lib/JavaBridge.jar -rw-r--r-- 58673 31-Oct-2010 15:24:24 WEB-INF/lib/php-script.jar -rw-r--r-- 58252 31-Oct-2010 15:24:24 WEB-INF/lib/php-servlet.jar -rw-rw-r-- 3871 31-Oct-2010 15:24:50 index.php -rwxrwxr-x 19 31-Oct-2010 15:24:50 test.php -rw-rw-r-- 1779 31-Oct-2010 15:24:50 WEB-INF/web.xml drwxr-xr-x 0 25-Apr-2016 20:53:10 java/ 
0
source

All Articles