Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: spam removal

...

This tutorial shows how to use PHP version 4 with Tomcat version 4 or later. The tutorial was originally written and sent to the tomcat-dev mailing list by Jean-Frederic Clere (on his vacation, no less (wink) ) and Henri Gomez.

PHP version 5 is not currently supported as it does not include the necessary servlet code.

Prerequisites

  • Download PHP (this tutorial uses PHP 4.3.5)
  • Download Tomcat (this tutorial uses Tomcat 5.0.19)
  • Define $JAVA_HOME for your JDK installation
  • Define $TOMCAT_HOME for your Tomcat installation
  • Define $PHP_HOME for your PHP installation

...

There is a patch required to compile PHP 4 to use Tomcat 5.

Prior to version 2.4 of Servlet Specification, the name of the servlet jar file was servlet.jar. In version 2.4 of the Servlet Specification, this name was changed to servlet-api.jar. Tomcat 4 uses the name servlet.jar, whereas Tomcat 5 and later uses servlet-api.jar. This causes problems with PHP's configure script.

...

If everything is working as it should, you will see an informational status page produced by PHP.

...

CategoryFAQ