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.
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
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.
Partager