Run PHP on Tomcat Server

Posted By Shakil Pathan | 30-Sep-2014

PHP on Tomcat Serevr

Hi,

In this blog I am going to explain you how to run php on tomcat server. For running php scripts you have to install php on your machine.

First you have to download PHP/JAVA Bridge templetate war file form the below link:

 http://php-java-bridge.sourceforge.net/pjb/webapp.php
 

Then deploy the war file into tomcat webapps folder and start the server.

It will create a directory in webapps named as the war file name. Then you can put your php scripts or php project into that directory and restart the tomcat server.

Please note that the mod_rewrite(apache module) should not work in this case and .htaccess file is not usable.

Hope it helps!!

Thanks

Shakil

Request for Proposal

Recaptcha is required.

Sending message..