Installation Guide
Note that the PHP/Java Bridge cannot be installed. It can be started by running JavaBridge.jar or through JEE and JavaBridge.war. Do not search for a PHP extension, java.so or php_java.dll. These extensions are obsolete since PHP 5. Everything needed to communicate with a Java servlet engine is part of PHP 5.
Download the PHP/Java Bridge binary and extract it into a directory. -- The download section also contains a file "JavaBridgeTemplate.war", without any documentation, examples and test cases.
Installation
- 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 -classpath JavaBridge.war TestInstallation - Install Apache Tomcat (or any other servlet engine) as a Windows or Unix service and copy JavaBridge.war to its autodeploy folder.
- Browse to
http://localhost:8080/JavaBridge
and run the PHP and JSP examples. If this step fails due to a missing "php-cgi" FastCGI SAPI, run Apache/IIS PHP, see below. - Copy or symlink the created webapps/JavaBridge folder to the web server document root.
- Browse to
http://yourHost.com/JavaBridge
and run the PHP examples through Apache/IIS PHP.
INSTALL.J2EE file from the documentation download.