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.

httpd crashing?

Discussion in 'General Discussion' started by infiniteecho, Aug 30, 2008.

  1. infiniteecho

    infiniteecho Registered

    Joined:
    Aug 30, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    So, I have been using cpanel for a while now. Once in a while I would have issues with httpd timing out. I setup monitoring so that cPanel would automagically restart the dead process.

    Well, now serving traffic from the cpanel install is impossible, httpd is just dead all together for clients. WHM works perfectly.

    Any thoughts?

    I am stumped.

    Thanks for any input.

    --Echo
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have you checked your logs for things that might point to the problem?

    You might try this from shell as root;

    service httpd configtest

    cPanel already monitors and restarts services as required.
     
  3. RobertNikic

    RobertNikic Active Member

    Joined:
    Jun 20, 2008
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tampa Bay
    Hello,

    I would suggest restarting the httpd service.
    I would also suggest looking into the httpd error log for further information.

    If you have any further questions, feel free to contact me.
     
  4. infiniteecho

    infiniteecho Registered

    Joined:
    Aug 30, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    So look like there is nothing useful in either place:

    # service httpd configtest
    Syntax OK

    # cat /var/log/httpd/error_log
    #


    I might add that this is on a VPS. I own the company and I know the VPS nodes are not overloaded or oversold, neither is the cpanel install. So I know load is not contributing to the problem.

    --Echo
     
  5. infiniteecho

    infiniteecho Registered

    Joined:
    Aug 30, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    Thanks for the fast replies.

    I have restarted httpd about 30 times and it didn't make much difference.

    I will have a look at the logs and config.

    Thanks again for the input, I will have a look and report back.

    --Echo
     
  6. koolcards

    koolcards Well-Known Member

    Joined:
    Oct 8, 2003
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Tampa, Fl
    Check your MySQL processes and see if some of the queries aren't holding the httpd processes open and maxing out your max servers setting.

    While running 'top', shut apache down completely and see if all the httpd processes actually shut down. If a database query is hanging, sometimes the parent httpd process won't close on a graceful restart and you may have to kill each manually.

    Keep us updated and let us know what you find.
     
Loading...

Share This Page