0

I am trying to install a PHP Java Bridge as per the instructions on http://php-java-bridge.sourceforge.net/pjb/index.php on Windows 7

I have PHP working fine on via IIS installed at c:\php

I copied the JavaBridge.war to c:\php which proved to get a good result from the test (running from c:\php)

java -classpath JavaBridge.war TestInstallation

I installed Tomcat 7 and copied the JavaBridge.war to webapps, which the service extract automatically and I am able to get the expected result from

http://localhost:8080/JavaBridge/

All Ok Great!

However when I do the same with the JavaBrigdeTemplate621.war, the browser

http://localhost:8080/JavaBridgeTemplate621/

returns an error

HTTP Status 500 - php.java.bridge.http.FCGIConnectException: Could not connect to server

I have not included the whole page as its very verbose, but the last root cause entry is

root cause

java.io.IOException: PHP not found. Please install php-cgi. PHP test command was: [php-cgi, -v] php.java.bridge.Util$Process.start(Util.java:1145) php.java.servlet.fastcgi.FCGIProcess.start(FCGIProcess.java:68) php.java.bridge.http.NPChannelFactory.doBind(NPChannelFactory.java:94) php.java.bridge.http.FCGIConnectionFactory.runFcgi(FCGIConnectionFactory.java:88) php.java.bridge.http.FCGIConnectionFactory$1.run(FCGIConnectionFactory.java:109)

I've tried restarting IIS as well as Tomcat several times

What am I missing (It's Hot and it's Friday ....)

I notice that

\webapps\JavaBridgeTemplate621\WEB-INF\cgi\x86-windows

has a text file called php-cgi.exe.MISSING.README.txt

where as

\webapps\JavaBridge\WEB-INF\cgi\x86-windows

has php-cgi.exe, php5ts.dll and php.ini

Is there another manual step required to get those in there not documented in the instructions?

4

1 回答 1

0

没有足够清楚地阅读说明。我错过了您应该将自动创建的文件夹(从战争中)复制到 IIS Web 应用程序文件夹中。我试图使用 Tomcat 作为 HTTP 服务器而不是 IIS。一旦我将它们复制到 IIS 并通过默认端口 80(不是 8080)访问它就可以正常工作。

希望我与自己的对话对其他人有益

于 2014-07-25T19:35:17.143 回答