Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    3

    Default mod_fcgid: error reading data from FastCGI server

    Hi,
    I usually don't need to post questions, but this is driving me crazy. I'm running a Cpanel box with apache/mod_fcgid/php5/eaccelerator.
    I switched to mod_fcgid from su_php and it runs extremely well, except for this minor glitch:
    Code:
    Wed Feb 02 12:44:38 2011] [error] [client xxx.xxx.xxx.xx] Premature end of script headers: index.php, referer: http://www.xxx.com/xxxx/
    [Wed Feb 02 12:44:38 2011] [warn] [client xxx.xxx.xxx.xx] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://www.xxx.com/xxxx/
    This is a random error that throws a 500 page when it happens. I tried different configurations for fcgi with no positive results, but I found out one odd fact: this error occurs every exact 4 minutes, at 38 seconds, no matter how many times I restart apache, it shows up every time at xx:xx:38 201x.

    I checked for mod_fcgid options with 240 seconds, custom or default, and I didn't find any. Of course, this is a high-traffic server, so errors appear often related to the site that's taking this traffic.

    I'll appreciate any clues, hints or solutions!

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: mod_fcgid: error reading data from FastCGI server

    Do you have APC and/or Zend Optimizer active on the machine?

    I realize that EAccelerator is being used and I've found similar errors such as "Connection reset by peer: mod_fcgid: error reading data from FastCGI server" in researching systems with Zend + APC running together. It's possible that Zend Optimizer, EAccelerator and/or APC (if this is being used) are contributing to the issue.

    You might try disabling any or all of these by commenting them out of the global php.ini file at /usr/local/lib/php.ini and restarting Apache to see the results.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    3

    Default Re: mod_fcgid: error reading data from FastCGI server

    Hi Tristan, thanks for your answer.
    Unfortunately, the error persisted disabling eaccelerator or zend optimizer and both at the same time. APC is not installed at all. Any clues? Thank you!

  4. #4
    Member
    Join Date
    Jun 2006
    Posts
    70

    Default Re: mod_fcgid: error reading data from FastCGI server

    I've one sugestion. If you have the configserver firewall, see the parameter PT_USERMEM and put it to ZERO. That parameter on fastcgi can kill php processes, causing that problem.

    If you don't have this, try to disable IONCUBE and Frontpage.

  5. #5
    Registered User
    Join Date
    Sep 2004
    Posts
    3

    Default Re: mod_fcgid: error reading data from FastCGI server

    Quote Originally Posted by xanubi View Post
    I've one sugestion. If you have the configserver firewall, see the parameter PT_USERMEM and put it to ZERO. That parameter on fastcgi can kill php processes, causing that problem.

    If you don't have this, try to disable IONCUBE and Frontpage.
    Hi Xanubi, thanks for the tip. Unfortunately it didn't make it. I even disabled completely the firewall with no luck. Nevertheless is worth noting that might impact so I left the setting as you suggested, thank you.

    What really bugs me is that the error shows up every exactly four minutes, at second 38, like it was a cron or something. I've checked every possible clue, including apache support lists, and recompiled with Apache php 5.2.16 with no luck so far. Mod_fcgid still is 2.3.5 even though version 2.3.6 is out, is it possible to update this module within cpanel?

    Thanks for your help.

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: mod_fcgid: error reading data from FastCGI server

    Hello,

    Would you be able to open a ticket using the link in my signature or in WHM > Support Center > Contact cPanel area? This way we can see if we can determine why this might be happening.

    If you do open a ticket, please post the ticket number here.

    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    Member
    Join Date
    Dec 2010
    Posts
    14

    Default Re: mod_fcgid: error reading data from FastCGI server

    I've been having similar issues, I was wondering if you managed to reach a solution

  8. #8
    Registered User
    Join Date
    May 2011
    Posts
    3

    Default Re: mod_fcgid: error reading data from FastCGI server

    Hello.
    I have this problem.

    How i Can fix it.

    [Mon Jun 13 10:54:39 2011] [warn] [client xxx.xxx.xxx.xxx] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
    [Mon Jun 13 10:54:39 2011] [error] [client xxx.xxx.xxx] Premature end of script headers: login.php

    Thanks.

  9. #9
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: mod_fcgid: error reading data from FastCGI server

    Do you have homeloader.so enabled in your /usr/local/lib/php.ini file on the machine in question?
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  10. #10
    Member boonjackmedia's Avatar
    Join Date
    Apr 2010
    Location
    Cincinnati, OH USA
    Posts
    34

    Default Re: mod_fcgid: error reading data from FastCGI server

    Quote Originally Posted by cPanelTristan View Post
    Do you have homeloader.so enabled in your /usr/local/lib/php.ini file on the machine in question?
    Tristan, if he had homeloader.so enabled would it cause a conflict? If so, what's the fix, advice?

    I'm curious because I have homeloader.so and have had mod_fcgid glitches for awhile now, so I'm stalking related threads... in a good way though of course.
    Mike Sayre

    Blog | Portal

  11. #11
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: mod_fcgid: error reading data from FastCGI server

    Here is a discussion about homeloader.so being enabled:

    http://forums.cpanel.net/f5/case-447...rs-140821.html

    It has been shown to cause memory errors for some scripts and other assorted errors. To quote my post in that thread:

    At this time, FCGI or CGI + homeloader.so appears to cause errors and will not function. Please note that the homeloader.so module for PHP is used by the "Magic User Loader" module, which is set in WHM > Software Module Installers PHP Extensions and Applications area. It would be enabled by selecting the "Magic User Loader" option. The purpose of the module would be so that users do not have to enter in the full include path for PEAR modules, but PEAR modules will still work without using this module.
    My advice would be to comment out the module in your php.ini and see if the errors quit happening. It shouldn't be used with FCGI.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Replies: 56
    Last Post: 04-10-2012, 10:52 PM
  2. lost while reading message data (header)
    By testtubebaby in forum E-mail Discussions
    Replies: 9
    Last Post: 01-30-2011, 11:22 PM
  3. FastCGI (mod_fcgid) issue with cPanel
    By 9xlinux in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-20-2010, 09:47 PM
  4. error reading session data
    By ccarpenter in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 06-17-2009, 12:01 PM
  5. Runnng PHP as FastCGI instead of DSO - Internal Server Error
    By DReade83 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 03-10-2009, 12:19 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube