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 not restarting properly

Discussion in 'EasyApache' started by russellhosting, Oct 16, 2006.

  1. russellhosting

    russellhosting Active Member

    Joined:
    Jun 19, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    6
    Whenever any action is done in WHM that requires httpd to restart, it doesn't seem to restart. Instead it stays down until the monitor catches it and restarts it.

    Where should I start looking for the issue with this?
     
  2. carluk

    carluk Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    162
    Likes Received:
    0
    Trophy Points:
    16
    Which build of cpanel are you using, I have seen this recently myself.
     
  3. sumith

    sumith Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    96
    Likes Received:
    2
    Trophy Points:
    8
    Check if there is any syntax errors in apache conf

    # /usr/local/apache/bin/httpd -t
     
  4. krava

    krava Well-Known Member

    Joined:
    Sep 23, 2003
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    More over, you need to check the apache error log file. Usually it is located in:
    /usr/local/apache/logs/
    and the error file is called error_log.
     
  5. russellhosting

    russellhosting Active Member

    Joined:
    Jun 19, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    6
    Both the conf file is fine, and there is not indications in the error log. It starts fine if I manually issue the command, it just doesn't seem to like it if a cPanel script invokes it. It does however restart fine if I restart it through WHM as well...
     
  6. russellhosting

    russellhosting Active Member

    Joined:
    Jun 19, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    6
    I just did some more tests and it looks like when cPanel tries to restart apache then it doesn't do a clean shutdown. Where would be the best place to look where most of these scripts call this shutdown at? Anything I can tried to call manually and tail the error_log?
     
Loading...

Share This Page