Running php 5.x on windows using tomcat 4.x or 5.x - Simple Thoughts - Java and Web Software
Running php 5.x on windows using tomcat 4.x or 5.x - Simple Thoughts - Java and Web Software " Running php 5.x on windows using tomcat 4.x or 5.x December 11th, 2004 by Angsuman What it solves: 1. Using php 5.x on Tomcat 4.x or 5.x 2. Enabling php only in one web application, instead of globally. The simplest possible configuration is described. The descriptions are terse assuming your intelligence. We will assume php will be installed in c:\ drive. Substitute with drive letter of your choice. Instructions 1. Download latest php 5.x zip file. I used http://www.php.net/get/php-5.0.2-Win32.zip/from/a/mirror . 2. Download latest Collection of PECL modules. I used http://www.php.net/get/pecl-5.0.2-Win32.zip/from/a/mirror . 3. Unzip php 5.x zip file anywhere, normally c:\php 4. Copy php.ini-dist, in c:\php, as php.ini 5. Uncomment the line (remove semi-colon at the beginning) in php.ini: ;extension=php_java.dll 6. Extract php5servlet.dll from pecl zip file to c:\php (Uncheck "Use Folder Names" in WinZip). Ensure that the file is actually present in c:\php 7. Install Tomcat and create a directory under webapps. Lets say it is named fun. 8. Create WEB-INF directory under fun 9. Create lib directory under WEB-INF 10. Create web.xml under WEB-INF with the following contents: