|
From: Jost B. <jos...@ya...> - 2005-11-09 18:32:09
|
Hi Victor, the easiest way is to install the j2ee backend (http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge.j2ee_2.0.8.zip?download). It allows you to convert your jsp files to php step by step. Assuming that your web application is called myApp and you want to run php files: * copy webapps/JavaBridge/WEB-INF/lib/JavaBridge.jar and the controller servlet classes from JavaBridge/WEB-INF/classes/ to webapps/myApp/WEB-INF/ * add the servlet mapping to your WEB-INF/web.xml, please see JavaBridge/WEB-INF/web.xml for a template. Please set the init-param "override_hosts" to Off and set the correct hosts and servlet in your php.ini: * use the following lines in your php.ini [java] java.hosts="127.0.0.1:8080" java.servlet="/myApp/PhpJavaServlet" If you browse to http://localhost:8080/myApp, you should be able to develop and invoke your php files. For a production system please start Apache and browse to http://yourHost.com/myApp. The php modules will call to the java backend as neccesary. In case you have a distribution where the tomcat webapps and the apache htdocs directories are not shared, please either use a symlink or use mod jk to "JkMount" the tomcat webapps directory into apache (please see the readme for details). Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |