- The PHP/Java Bridge is pure Java JEE application. You need Java 1.4 or above running on any operating system or architecture.
- A standard JEE server or servlet engine is recommended to run the Java code. If you don't want to use it, you won't get any support from us. If you prefer a proprietary (non-JEE) application server, please visit http://files.zend.com/help/Zend-Server/working_with_the_java_bridge.htm.
- Do not search for a PHP extension,
php_java.dll. These extensions are obsolete. Everything needed to communicate with a Java servlet engine is part of PHP 5.
- Test your PHP installation with:
If the test fails due to a missing "php-cgi" FastCGI SAPI, expect step no. 3 to fail, too.
java -jar JavaBridge.war
- Download and install original Apache Tomcat software (or any other supported servlet engine or application server) as a Windows or Unix service and copy JavaBridge.war to its autodeploy folder.
- Browse to FastCGI SAPI, run Apache/IIS PHP, see below.
- Copy or symlink the created webapps/JavaBridge folder to the web server document root.
- Browse to
For further information please see the
INSTALL.J2EE file from the documentation download.
Supported servlet engines and application servers
The following Java Application Server back-ends are supported:
- BEA WebLogic,
- Sun/Oracle Glassfish,
- Apache Geronimo,
- IBM WebSphere,
- Caucho Resin,
- RedHat JBoss,
- Sun Java System Application Server,
- Apache Tomcat,
- Mortbay/Eclipse Jetty.
Note for Jetty users: This server returns NULL for getRealPath(PATH). In order to allow PHP scripts to access the file system, you need to deploy an exploded application instead.
Supported HTTP servers
The following HTTP server front-ends are supported:
User contributed guides