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!

Apache fails now and then...

Discussion in 'EasyApache' started by ArbuZz, Jul 13, 2007.

  1. ArbuZz

    ArbuZz Active Member

    Mar 27, 2007
    Likes Received:
    Trophy Points:
    I got an error "httpd on failed" get mailed to my mailbox twice a day. And when I'm online I pretty often find that web-sites are not loading and http is just stuck. I cant find out what triggers the problem. There are no errors mentioned in log files and I'm not tough in that kind of stuff to find them myself :(

    Any help appreciated.
  2. koolcards

    koolcards Well-Known Member

    Oct 8, 2003
    Likes Received:
    Trophy Points:
    Tampa, Fl
    If it's httpd processes 'hung' tying up apache resources until the server can no longer respond, then I've had it happen usually when a script is accessing a (often) too large MySql database. Too many requests to the database slows down MySql response which holds open the httpd process, etc, the more httpd processes held open, and so forth. There are no errors either so nothing is logged. When the problem happens, shut down apache and see if there are httpd processes still running. Look also then at the MySql processes as well.

    If that's the case, try editing your mysql /etc/my.cnf and increasing the amount of system memory allocated for the key, sort, read, and write buffers. Might want to increase the number of allowed connections from the default 100 to something more as well.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. acenetryan

    acenetryan Well-Known Member PartnerNOC

    Aug 21, 2005
    Likes Received:
    Trophy Points:
    Less likely, but I came across it earlier this week. If you have PRM installed, make sure it's configured not to kill root processes or httpd processes.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice