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 failed @ Wed Dec 14 02:40:37 2005. A restart was attempted automagicly.

Discussion in 'General Discussion' started by dev.null, Dec 14, 2005.

  1. dev.null

    dev.null Well-Known Member

    Joined:
    May 27, 2003
    Messages:
    75
    Likes Received:
    1
    Trophy Points:
    6
    I get these about every 8 - 9 minutes. There doesn't appear to be any real problem with httpd at all.

    /etc/init.d/httpd configtest shows that the config is just fine

    service httpd stop
    service httpd startssl


    both run just fine.

    I do watch "ps ax | grep httpd" and httpd has about 10 process that run just fine until a script that restarts http fires up and forces the kill and restart of httpd.

    Why does (is it cPanel?) the system think that httpd has stopped and "restart" it?

    How can I stop if from happening (unless it's really necessary)?

    Thanks!
     
  2. dev.null

    dev.null Well-Known Member

    Joined:
    May 27, 2003
    Messages:
    75
    Likes Received:
    1
    Trophy Points:
    6
    Update on the info. I think I know what is causing the failure. One of the IPs assigned on the server runs a different service on port 80 (something we have to run on that port so 99% of all firewalls will allow our application to connect through them). It's not http-based.

    I think every 8/9 minutes cpanel checks port 80 for http response and doesn't get on off of that IP and thinks httpd is dead, and forces the restart.

    How can I still have this IP setup on my server but not have cpanel check it for http on port 80? I think that will stop the problem.

    Thanks!
     
  3. dev.null

    dev.null Well-Known Member

    Joined:
    May 27, 2003
    Messages:
    75
    Likes Received:
    1
    Trophy Points:
    6
    Fixed

    OK, the cpanel scripts check for connectivity on localhost port 80 to see if the web server is still there. I had modified httpd.conf to force apache to only listen to the IPs I wanted it to, avoiding the one IP that was being used by another applicationon port 80.

    So the fix was to re-edit httpd.conf and put a 'Listen 127.0.0.1:80' in the mix.

    Hope this helps someone else coming along...
     
  4. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Excellent work in tracking down the cause of your problem.

    I often see threads started due to people having problems, only to have the starter post back to say that the issue had been resolved but not explaining why.

    Well done!
     
Loading...

Share This Page