php fastcgi

Discussion in 'Server Operation' started by vuit, Feb 27, 2009.

  1. vuit

    vuit New Member

    Dear ALL

    I use web server apache use php fastcgi (Centos 5.2, apache 2.2.9 , php 5.2.5 and fcgi-2.2.4 )

    I receive error :

    "The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log."

    Try F5 -> nornal

    I view log :

    Handler for fastcgi-script returned invalid result code 1, referer: http://forum.zz.vn/install/upgrade_381.php

    [Fri Feb 27 15:08:11 2009] [error] [client 10.199.5.41] (4)Interrupted system call: FastCGI: comm with server "/usr/local/gtweb/apache/cgi-bin/php5.fcgi" aborted: select() failed, referer: http://forum.zz.vn/tl/showthread.php?t=951027

    [Fri Feb 27 15:08:11 2009] [error] [client 10.199.5.41] FastCGI: incomplete headers (0 bytes) received from server "/usr/local/gtweb/apache/cgi-bin/php5.fcgi", referer: http://forum.zz.vn/tl/showthread.php?t=951027

    File php-cgi :

    PHP_FCGI_CHILDREN=2
    export PHP_FCGI_CHILDREN
    PHP_FCGI_MAX_REQUESTS=5000
    export PHP_FCGI_MAX_REQUESTS
    exec /usr/local/gtweb/php/bin/php-cgi

    and woker config

    <IfModule mpm_worker_module>
    ServerLimit 100
    StartServers 50
    ThreadsPerChild 64
    MaxClients 1600
    ThreadLimit 100
    MinSpareThreads 50
    MaxSpareThreads 100
    MaxRequestsPerChild 5000
    SendBufferSize 32768
    </IfModule>

    Cheers,
    ScottZu:mad::mad:
     
  2. falko

    falko Super Moderator Howtoforge Staff

Share This Page