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.

ChkServd reports 'httpd failed' but server runs fine ?!

Discussion in 'General Discussion' started by bmett, Aug 11, 2011.

  1. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
    Hi there,

    Lately we get around 10-15 emails a day like the following
    What exactly means that? The server runs fine. I can restart apache without a problem and there are no outages
    Anyone an idea?
    Cheers,
    Bjorn
     
  2. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
    Wow, no replies yet...
    stupid question or just hard to answer :confused:
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello bmett,

    The main portion of the error for why it tried a restart was the following:

    The main reason this might occur is that ckservd couldn't get the service (httpd) to respond in the necessary time to determine it was running. If httpd was running, it might indicate the machine had an excessive number of connections beyond those of MaxClients and ServerLimit, which prevented any connection from being able to be established properly.

    You can check if this might be the case with the following:

    Code:
    grep -i maxclient /usr/local/apache/logs/error_log
    If you see any indications that MaxClients was reached, then I would suggest increasing the limit for MaxClients and ServerLimit in WHM > Apache Configuration > Global Configuration area.

    If you do not see any indications that was happening, then I suggest opening up a ticket in WHM > Support Center > Contact cPanel or using the link in my signature for us to investigate further.

    Thanks!
     
  4. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
    Hi Tristan,

    Thanks for the reply.

    Nothing in the log that mentions maxclient.

    We decided to run easyapache on the server (hasn't been done for a while) to update apache, php, etc. Maybe that'll fix the issue.

    I'll keep posting here if the issue persist.

    Cheers,
    Bjorn
     
  5. arhs

    arhs Well-Known Member

    Joined:
    Jul 4, 2003
    Messages:
    116
    Likes Received:
    0
    Trophy Points:
    16
    We also have similar issue with one of our servers.

    httpd failed @ Tue Sep 27 09:12:18 2011. A restart was attempted automagically.

    Service Check Method: [tcp connect]

    Failure Reason: Service check failed to completehttpd: [ != HTTP/1..]


    Number of Restart Attempts: 1

    Any fixes?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I suggest opening a support ticket with our staff so we may login to determine the exact cause of that message. You can open a ticket via the following URL:

    Submit A Ticket

    Thank you.
     
  7. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
    Hi arhs,

    Back then it took us a long time to figure out what was wrong. We had up to 50 of thoses httpd failure messages per day in the end.

    Our problem was that we used an ASL (gotroot) modsecurity implantation. This implantation seemed to replace pcre every time we recompiled apache. Cpanel itself installs a customized pcre installation, but ASL then would overwrite it partially leaving us with an inconsistent pcre installation.
    This caused apache to fail for even very simple things like mod_rewrite.

    In the end we did a complete review of our mod_security software, which finally stopped the error from appearing.

    Cheers,
    Bjorn
     
  8. arhs

    arhs Well-Known Member

    Joined:
    Jul 4, 2003
    Messages:
    116
    Likes Received:
    0
    Trophy Points:
    16
    We are also using ASL paid rules. Do you know which file you've edited?
     
  9. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
    Hi arhs,

    Unfortunately I can't tell you much about because we had our external server guru to look at it. It took him alone a couple of days until he found the issue.

    Maybe its worthwhile for you to look at the following section of the ASL docs:

    Special_notes_for_CPANEL_users_not_using_ASL


    Cheers,
     
Loading...

Share This Page