duanjia3187 2016-02-17 11:41
浏览 91

java.io.IOException:PHP FastCGI服务器未运行

I configured piwik php code to my apache tomcat server using java-bridge and php-servlet api,

It is working fine for the local environment with window, but while same thing done on test environment, There also working fine but after some time it is falling and giving following exception :

If anyone having the same experience please help me to get it out.

type Exception report

message PHP FastCGI server not running. Please see server log for details. Or start a PHP FastCGI server using the command:

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.io.IOException: PHP FastCGI server not running. Please see server log for details. Or start a PHP FastCGI server using the command:
cd /liferay-portal-6.2-ee-sp7/tomcat-7.0.42/webapps/piwik/WEB-INF/cgi/amd64-linux
REDIRECT_STATUS=200 X_JAVABRIDGE_OVERRIDE_HOSTS="/" PHP_FCGI_CHILDREN="5" PHP_FCGI_MAX_REQUESTS="5000" /usr/bin/php-cgi -b 127.0.0.1:9668


    php.java.servlet.fastcgi.FastCGIServlet.handle(FastCGIServlet.java:489)
    php.java.servlet.fastcgi.FastCGIServlet.doGet(FastCGIServlet.java:521)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126)
root cause

java.io.IOException: PHP FastCGI server failed: 
    php.java.servlet.fastcgi.FastCGIServlet.execute(FastCGIServlet.java:439)
    php.java.servlet.fastcgi.FastCGIServlet.handle(FastCGIServlet.java:481)
    php.java.servlet.fastcgi.FastCGIServlet.doGet(FastCGIServlet.java:521)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126)
root cause

php.java.bridge.http.FCGIConnectException: Could not connect to server
    php.java.bridge.http.SocketChannelFactory.doConnect(SocketChannelFactory.java:77)
    php.java.bridge.http.SocketChannelFactory.connect(SocketChannelFactory.java:88)
    php.java.servlet.ContextLoaderListener$1.connect(ContextLoaderListener.java:533)
    php.java.bridge.http.FCGIConnectionPool$Connection.reopen(FCGIConnectionPool.java:101)
    php.java.bridge.http.FCGIConnectionPool.openConnection(FCGIConnectionPool.java:224)
    php.java.servlet.fastcgi.FastCGIServlet.parseBody(FastCGIServlet.java:312)
    php.java.servlet.fastcgi.FastCGIServlet.execute(FastCGIServlet.java:433)
    php.java.servlet.fastcgi.FastCGIServlet.handle(FastCGIServlet.java:481)
    php.java.servlet.fastcgi.FastCGIServlet.doGet(FastCGIServlet.java:521)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126)
root cause

java.net.ConnectException: Connection refused
    java.net.PlainSocketImpl.socketConnect(Native Method)
    java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    java.net.Socket.connect(Socket.java:579)
    java.net.Socket.connect(Socket.java:528)
    java.net.Socket.<init>(Socket.java:425)
    java.net.Socket.<init>(Socket.java:241)
    php.java.bridge.http.SocketChannelFactory.doConnect(SocketChannelFactory.java:75)
    php.java.bridge.http.SocketChannelFactory.connect(SocketChannelFactory.java:88)
    php.java.servlet.ContextLoaderListener$1.connect(ContextLoaderListener.java:533)
    php.java.bridge.http.FCGIConnectionPool$Connection.reopen(FCGIConnectionPool.java:101)
    php.java.bridge.http.FCGIConnectionPool.openConnection(FCGIConnectionPool.java:224)
    php.java.servlet.fastcgi.FastCGIServlet.parseBody(FastCGIServlet.java:312)
    php.java.servlet.fastcgi.FastCGIServlet.execute(FastCGIServlet.java:433)
    php.java.servlet.fastcgi.FastCGIServlet.handle(FastCGIServlet.java:481)
    php.java.servlet.fastcgi.FastCGIServlet.doGet(FastCGIServlet.java:521)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.42 logs.

Apache Tomcat/7.0.42

Thanks! Surendra

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 BP神经网络控制倒立摆
    • ¥20 要这个数学建模编程的代码 并且能完整允许出来结果 完整的过程和数据的结果
    • ¥15 html5+css和javascript有人可以帮吗?图片要怎么插入代码里面啊
    • ¥30 Unity接入微信SDK 无法开启摄像头
    • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
    • ¥20 cad图纸,chx-3六轴码垛机器人
    • ¥15 移动摄像头专网需要解vlan
    • ¥20 access多表提取相同字段数据并合并
    • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
    • ¥20 Java-Oj-桌布的计算