Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Connection reset by peer: mod_fcgid: error reading data from FastCGI server

Discussion in 'General Discussion' started by PondRicefied, Mar 4, 2012.

  1. PondRicefied

    PondRicefied Well-Known Member

    Dec 13, 2004
    Likes Received:
    Trophy Points:
    When a user site is accessed by shared SSL, (NG)
    - -> /home/sharedusername/public_html (no contents)
    - /~username -> /home/username/public_html

    the following error occurs.

    --- error_log ---
    (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
    Premature end of script headers: index.php
    --- suexec_log ---
    uid: (userid/username) gid: (groupid/username) cmd: php5
    command not in docroot (/usr/local/cpanel/cgi-sys/php5)

    But, If it accesses to shared SSL after accessing to a user site, contents are normally displayed only during the FcgidIdleTimeout. -> (OK) (OK: during the FcgidIdleTimeout)

    So, If the period of FcgidIdleTimeout expires, access by shared SSL will occur 500 errors. (NG: after FcgidIdleTimeout expires)

    -- web app (with settings) ---
    Apache/2.2.22 mod_fcgid 2.3.6 PHP 5.3.10 (cgi-fcgi)

    LoadModule fcgid_module modules/
    AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml .cgi .pl
    FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php5
    FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php4
    FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php
    FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php3
    FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php2
    FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .phtml

    # End of autogenerated PHP configuration.
    FcgidMaxRequestsPerProcess 500

    exec /usr/bin/php

    Please advise me:(

Share This Page