Thursday, September 18, 2008

Getting PHP 5.2 to work with Tomcat 6.0

Read this blog entry first
http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-5x/

Download Tomcat 6.0
Download PHP version 5.2.6 - Zip Distribution (the windows installer doesn't work properly)
Add the php directory and extension directory to the system path
Add the 2 environment variables noted in the blog referred above
Copy the php.ini file from php.ini.recommended
change the doc_root to reference the apache tomcat webapps directory
Add the extension php_java.dll
Copy php5servlet.jar to the tom/lib folder
Copy the fun app to tomcat/webapps
Copy the 2 dlls to the php_home folder
Remember to restart tomcat if it was already running

1 comment:

MethoD said...

Where can I download php5servlet.jar?