Actually, what u need in integrating tomcat and php is that the QUERCUS, which you must download resin first b4 you install the quercus.
Get the resin from the following link http://www.caucho.com/download/
And the Following steps show you how run php in apache tomcat (in Linux)
- Download tomcat and unzip the archive where you want (=> TOMCAT_DIR)
- Create the following directories : TOMCAT_DIR/webapps/testPHP
- If necessary, create directory TOMCAT_DIR/common/lib (it seems, at least with tomcat 6, that the directory is no more created)
- Edit the file TOMCAT_DIR/conf/catalina.properties and modify the line for property shared.loader : shared.loader=${catalina.home}/common/classes,${catalina.home}/common/lib/*.jar
- Edit the file TOMCAT_DIR/conf/web.xml and add the lines mentionned below (see ‘lines to add to web.xml of your tomcat installation‘)
- To download quercus ( a php 5 engine written in pure java), you must in fact download resin because quercus can’t be downloaded separately
- Unzip the archive to RESIN_DIR
- Copy the 2 files RESIN_DIR/lib/resin-util.jar and RESIN_DIR/lib/quercus.jar to the directory TOMCAT_DIR/common/lib (see step 3)
- Now, in the directory TOMCAT_DIR/webapps/testPHP, create a file named test.php with the following content : start tomcat (TOMCAT_DIR/bin/startup.sh)
- if you have not already done Enter the following url in your web browser : http://localhost:8080/testPHP/test.php
if you still cant follow the step, you may refer to this website hehehehe
http://jszyzx.scu.edu.cn/resin-doc/quercus/tutorial/module/index.xtp




Posted by Integrate Tomcat & PHP in Linux | PHP-Blog.com on January 15, 2009 at 4:26 pm
[...] is the original: Integrate Tomcat & PHP in Linux Related ArticlesBookmarksTags PHP PHP is a computer scripting language. Originally [...]