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.

Apache Stats Offline

Discussion in 'EasyApache' started by autson, Sep 2, 2002.

  1. autson

    autson Active Member

    Joined:
    Apr 12, 2002
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    WHM is saying that apache is &offline& even though it is up and running without a problem and all sites are accessible. I've tried using the &restart& option but it doesn't change the status
     
  2. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    Don't worry, that info doesn't update instantaneously. Wait some minutes and refresh the screen and it'll say it's up again.
     
  3. autson

    autson Active Member

    Joined:
    Apr 12, 2002
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    It's been like for over 3 days.
     
  4. ecoutez

    ecoutez Well-Known Member

    Joined:
    May 23, 2002
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    0
    chkservd

    chkservd is the daemon that checks the status of Apache (along with Exim, Bind, Interchange, etc). It works pretty nicely save for an issue with reporting. When it finds a service down, it flags the service as down and attempts to restart it.

    So lets say that Apache dies for some reason. It will report as being up until chkservd gets around to its routine check (every 8 or 9 minutes) and next reports. At that time, chkservd reports that Apache is down and attempts a restart. Assuming this restart is successful, Apache will then have a red light when viewed in CP/WHM because it was last found to be down. Until 8 or 9 minutes later when it should be reported up... and stay that way.

    As to why yours is constantly reporting as down, that's a little harder. Check your logs. Take a look in /var/log/chkservd.log and you may see the daemon attempting to restart Apache. Is it? Is it possible that the daemon is restarting Apache unnecessarily? chkservd attempts to connect to port 80 on localhost to see if Apache is up. Any chance that fails? This may take some poking around to figure out... unless someone's seen it before of course, in which case there's probably a quick fix. ;)

    - Jason
     
  5. autson

    autson Active Member

    Joined:
    Apr 12, 2002
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    I finally figured it out. The server was reporting it down even though it was up due to a high load average on the server cpu
     
Loading...

Share This Page