From: <php...@li...> - 2011-06-27 21:03:25
|
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. |
From: <php...@li...> - 2011-06-27 22:18:06
|
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... pisze: > 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 > > |
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...pisze: >> 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 > |
From: <php...@li...> - 2011-06-28 14:59:09
|
> PHP application terminated unexpectedly, have you started php-cgi with the Ever tried to open a shell and type .\php-cgi -v before reporting this issue? I'm sure PHP will tell you which mistake you've made. |
From: <php...@li...> - 2011-06-28 17:40:47
|
Thanks for checking, but yes I did check the version information. Here it is: *C:\Program Files\PHP>php-cgi -v* *PHP 5.3.6 (cgi-fcgi) (built: Mar 17 2011 10:37:05)* *Copyright (c) 1997-2011 The PHP Group* *Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies* On Tue, Jun 28, 2011 at 10:59 AM, < php...@li...> wrote: > > PHP application terminated unexpectedly, have you started php-cgi with > the > > Ever tried to open a shell and type .\php-cgi -v > > before reporting this issue? I'm sure PHP will tell you which mistake > you've made. > > > ------------------------------------------------------------------------------ > 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 > |
From: <php...@li...> - 2011-06-28 19:01:17
|
Hi, please check your php ini settings. Removing any php ini file you can find should fix this. After that you can check which ini setting crashes php. Probably some SAPI specific stuff (IIS bindings for example). Regards, Jost Bökemeier |
From: <php...@li...> - 2011-06-28 20:10:14
|
Ok, so I removed the two ini files that come with the installation and I restarted the server and accessed the url again with the same error. On Tue, Jun 28, 2011 at 3:01 PM, < php...@li...> wrote: > Hi, > please check your php ini settings. > > Removing any php ini file you can find should fix this. After that you can > check which ini setting crashes php. Probably some SAPI specific stuff (IIS > bindings for example). > > Regards, > Jost Bökemeier > > ------------------------------------------------------------------------------ > 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 > |
From: <php...@li...> - 2011-06-29 05:40:18
|
Hi So I assume you have removed the copy which crashed due to a missing php dll as well. After that report this PHP bug to the php maintainer. Nuke your php installation, clear environment and registry and have a look at the pjb documentation download. Its demo war contains a working php executable. Regards, Jost Bökemeier |
From: <php...@li...> - 2011-06-29 13:08:38
|
Thank you! Thank you! Thank you! That worked!! On Wed, Jun 29, 2011 at 1:40 AM, < php...@li...> wrote: > Hi > > So I assume you have removed the copy which crashed due to a missing php > dll > as well. > > After that report this PHP bug to the php maintainer. Nuke your php > installation, clear environment and registry and have a look at the pjb > documentation download. Its demo war contains a working php executable. > > Regards, > Jost Bökemeier > > ------------------------------------------------------------------------------ > 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 > |