From: <php...@li...> - 2006-10-11 19:27:40
|
On the forward slashes, turns out you might have been on to something there. Chgd web.xml to use back slashes and got some different results When set to: <init-param> <param-name>php_exec</param-name> <param-value>C:\Apache\Tomcat\webapps\JavaBridge\WEB-INF\cgi\php-cgi-x86 -windows.exe</param-value> </init-param> I get a phpinfo page with "PHP Version 5.1.3-dev" in the header, and 21 instances of 'php-cgi-x86-windows' (no .exe or .dll extension listed..) running in in my task manager window. If I shut TC down then they terminate correctly as well. This is progress Now I'm fishing around abit to see if I can stumble across a solution, I try 'php-4-java-x86-windows.dll' in place of php-cgi-x86-windows.exe in the web.xml param-name value. Restart TC and get: javax.servlet.ServletException: An IO exception occured. Probably php was not installed as "/usr/bin/php-cgi" or "c:/php/php-cgi.exe" or "C:\Apache\Tomcat\webapps\JavaBridge\WEB-INF\cgi\php-cgi-x86-windows[.sh ]|[.exe]". Please see "php_exec" in your WEB-INF/web.xml and WEB-INF/cgi/README for details. php.java.servlet.PhpCGIServlet.doGet(PhpCGIServlet.java:546) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Makes sense, it seems to need an executable of some sort. The only other .exe file that I have in the cgi dir is the launcher.exe file that I copied in from the IBM link you provided. Changing web.xml to use that results in the test.php page hanging with out reloading and 52 instances of php.exe running and visible in the task manager window. Stopping TC does not terminate the 52 instances of php.exe So I try c:\php\php.exe in web.xml and get "Fatal: The loaded java extension is not the PHP/Java Bridge" with 20 instances of php.exe running. Stopping TC terminates the php.exe instances correctly Copy php.exe from c:\php to the cgi subdir and repath the web.xml file and I get: PHP 4.4.2 too old. For PHP versions < 5.1.4 install the PECL extension, see INSTALL document from http://php-java-bridge.sourceforge.net/INSTALL. Or set the path to the PHP executable, see php_exec in the WEB-INF/web.xml Hmm, running php.exe from 4.4.4 Try the url in the error msg above and search it for PECL without luck, tried copying php_java.dll and php_java.jar into the cgi subdir alongside php.exe, but the only way to get something that is close to working is to set the param-name value to php-cgi-x86-windows.exe, but it reports 5.1.3 Hope this helps Mike |