|
From: <php...@li...> - 2011-06-28 14:39:39
|
I added php home dir(there is no bin dir in my install) to the PATH env var
and restarted the server. The server startup shows no errors. But when I try
to access test.php I see the same error again. Here is the whole stacktrace:
*PHP application terminated unexpectedly, have you started php-cgi with the
environment setting PHP_FCGI_MAX_REQUESTS=5000? Error:
php.java.bridge.http.FCGIConnectionException
php.java.bridge.http.FCGIConnectionException
at php.java.bridge.http.FCGIInputStream.read(FCGIInputStream.java:58)
at
php.java.servlet.fastcgi.FastCGIServlet.parseBody(FastCGIServlet.java:362)
at
php.java.servlet.fastcgi.FastCGIServlet.execute(FastCGIServlet.java:433)
at
php.java.servlet.fastcgi.FastCGIServlet.handle(FastCGIServlet.java:481)
at
php.java.servlet.fastcgi.FastCGIServlet.doGet(FastCGIServlet.java:521)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:242)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:203)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:558)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:379)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:242)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:259)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:237)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:281)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Protocol error
at
php.java.bridge.http.FCGIInputStream.doRead(FCGIInputStream.java:67)
at php.java.bridge.http.FCGIInputStream.read(FCGIInputStream.java:54)
... 25 more*
On Mon, Jun 27, 2011 at 6:17 PM, <
php...@li...> wrote:
> You should not copy php.exe. I'm not 100% suro of that, but you should
> add php bin directory to PATH environment viarable. This way Java
> Application server will be able to start PHP interpreter with this
> test.php code.
>
> W dniu 2011-06-27 23:03, php...@li...:
>> Hi,
>> I have the following configuration
>> Tomcat home- c:/program files/apache tomcat
>> PHP home-c:/program files/php
>>
>> I downloaded javabridgetemplate621.war and deployed it to Tomcat. When
>> I started up the server I received an error saying php-cgi.exe was
>> missing. So, I copied php.exe from my php installation and moved it to
>> c:/program files/apache
tomcat/webapps/javabridgetemplate621/cgi/x6windows
>> and restarted server and the error disappeared.
>> I then tried accessing test.php from
>> http://localhost:8080/javabridgetemplate621/test.php and received this
>> error:
>>
>> PHP application terminated unexpectedly, haveyou started php-cgi witht
>> the environment setting PHP_FCGI_MAX_REQUESTS=5000?
>>
>> Why am I receiving this error?
>>
>> Thanks.
>>
>>
------------------------------------------------------------------------------
>> All of the data generated in your IT infrastructure is seriously
valuable.
>> Why? It contains a definitive record of application performance, security
>> threats, fraudulent activity, and more. Splunk takes this data and makes
>> sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-d2d-c2
>> _______________________________________________
>> php-java-bridge-users mailing list
>> php...@li...
>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>>
>>
>
>
>
------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|