home client api server api protocol f.a.q. downloads

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

  1. Test your PHP installation with:
    java -classpath JavaBridge.war TestInstallation
    If the test fails due to a missing "php-cgi" FastCGI SAPI, expect step no. 3 to fail, too.
  2. Install Apache Tomcat (or any other servlet engine) as a Windows or Unix service and copy JavaBridge.war to its autodeploy folder.
  3. 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.
  4. Copy or symlink the created webapps/JavaBridge folder to the web server document root.
  5. Browse to
    http://yourHost.com/JavaBridge
    and run the PHP examples through Apache/IIS PHP.
For further information please see the INSTALL.J2EE file from the documentation download.

User contributed guides