我需要在Amazon EC2上的Bitnami Tomcat堆栈上配置PHP JavaBridge。
我在AWS EC2上启动了我的BitnamiTomcat实例。
然后我在webapps中部署了/ opt / bitnami / apache-tomcat / webapps JavaBridge.war
然后,按照https://wiki.bitnami.com/Components/PHP-FPM的说明,我在PHP上启用了FPM:现在,如果我用phpinfo()命令检查php配置,我得到了
Server API FPM/FastCGI
所以我认为它配置正确。 但是,如果我浏览http://xxx.xxx.xxx.xxx/JavaBridge/我收到此错误
type Exception report
message php.java.bridge.http.FCGIConnectException: Could not connect to server
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: php.java.bridge.http.FCGIConnectException: Could not connect to server
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:133)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:188)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2517)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2506)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Thread.java:745)
.....
.....
所以我不确定JavaPHPBridge是否与FPM / FastCGI兼容,或者我在程序中遗漏了什么
请有没有人可以帮助我,因为我在Google上搜索了很多关于PHP-FPM和PHP / JavaBridge配置的信息,但却没有得到任何有用和清晰的信息。
亲切的问候, 马特