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 doesn't wait long enough before restarting

Discussion in 'EasyApache' started by mheaton, Apr 26, 2004.

  1. mheaton

    mheaton Member
    PartnerNOC

    Joined:
    Jul 8, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I am having a SERIOUS issue with Cpanel not starting apache correctly. It tries to restart apache (When someone does an addon domain, or subdomain, etc). It does a graceful restart and then starts up again but it doesn't wait long enough to shut down completely (Probably because we have like 800 domains on this server). Because of this I get TONS of errors with apache. It doesn't start and then I have to wait 5 mins for cpanel to realize it doesn't know how to start apache AT THE RIGHT TIME. Below are the errors just from the last 24 hours or so.

    If you have any suggestions PLEASE let me know....

    [Sun Apr 25 16:19:45 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Sun Apr 25 16:21:50 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Sun Apr 25 16:23:41 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Sun Apr 25 16:38:03 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Sun Apr 25 17:37:05 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Sun Apr 25 17:51:22 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Sun Apr 25 19:59:06 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Sun Apr 25 20:11:50 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Sun Apr 25 23:26:49 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Sun Apr 25 23:36:25 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 01:11:50 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 01:46:05 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 08:04:56 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 08:35:47 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 09:13:42 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 10:13:18 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 10:35:57 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 11:14:08 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 11:22:44 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 11:39:19 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 12:37:38 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 13:02:45 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 13:16:43 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 13:26:44 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 13:50:57 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 14:06:02 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 14:22:29 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 14:42:33 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 14:46:17 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 15:30:42 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 15:56:09 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 16:10:15 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 16:37:15 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 16:43:18 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 17:07:58 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 17:12:19 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 18:12:01 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Mon Apr 26 18:34:44 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
     
  2. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    I would suggest you look further into what is going on. WHM actually does a pretty good job on Apache restarts and very seldom is the pid file over written.

    Why don't do you do a stop/start yourself? Have two Shell windows open with one tailing the Apache error log. That way, when you do the stop/start in the other Shell window, you can see what is going on when Apache restarts.
     
  3. esupport.org.ua

    esupport.org.ua Well-Known Member

    Joined:
    Nov 16, 2004
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Apache UP and DOWN every time!!! Logs inside

    Hi

    Apache up and down, up and down, up and dow, every time.

    Please tell me reason, and how can I am fix it up?!

    --
    [Sat Dec 4 04:03:43 2004] [error] [client 212.113.164.100] File does not exist: /home/ajasomn/public_html/404.shtml
    [Sat Dec 4 04:04:21 2004] [error] [client 24.160.70.223] File does not exist: /home/thenexxu/public_html/favicon.ico
    [Sat Dec 4 04:04:44 2004] [error] [client 66.249.64.146] File does not exist: /home/yournorw/public_html/robots.txt
    [Sat Dec 4 04:04:44 2004] [error] [client 66.249.64.146] File does not exist: /home/yournorw/public_html/404.shtml
    [Sat Dec 4 04:05:02 2004] [warn] NameVirtualHost 67.19.143.254:80 has no VirtualHosts
    [Sat Dec 4 04:05:02 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    --
    [Sat Dec 4 04:07:56 2004] [error] [client 66.249.64.36] File does not exist: /home/deepdown/public_html/store/other.php
    [Sat Dec 4 04:07:59 2004] [error] [client 207.46.98.76] File does not exist: /home/lowlifes/public_html/robots.txt
    [Sat Dec 4 04:07:59 2004] [error] [client 207.46.98.76] File does not exist: /home/lowlifes/public_html/404.shtml
    [Sat Dec 4 04:08:05 2004] [error] [client 66.249.64.27] File does not exist: /home/deepdown/public_html/store/faq.html
    [Sat Dec 4 04:10:02 2004] [warn] NameVirtualHost 67.19.143.254:80 has no VirtualHosts
    [Sat Dec 4 04:10:02 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    --
    [Sat Dec 4 04:12:37 2004] [error] [client 219.88.252.110] File does not exist: /home/dbzpride/public_html/leech.htm
    [Sat Dec 4 04:12:37 2004] [error] [client 219.88.252.110] File does not exist: /home/dbzpride/public_html/404.shtml
    [Sat Dec 4 04:15:48 2004] [warn] NameVirtualHost 67.19.143.254:80 has no VirtualHosts[Sat Dec 4 04:15:48 2004] [warn] NameVirtualHost 67.19.143.254:80 has no VirtualHosts

    [Sat Dec 4 04:15:48 2004] [crit] (98)Address already in use: make_sock: could not bind to port 443
    [Sat Dec 4 04:15:48 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    --
    [Sat Dec 4 04:16:42 2004] [error] [client 66.196.91.219] File does not exist: /home/midnight/public_html/robots.txt
    [Sat Dec 4 04:16:42 2004] [error] [client 66.196.91.219] File does not exist: /home/midnight/public_html/404.shtml
    [Sat Dec 4 04:16:47 2004] [error] [client 65.214.36.13] File does not exist: /home/desolate/public_html/robots.txt
    [Sat Dec 4 04:16:47 2004] [error] [client 65.214.36.13] File does not exist: /home/desolate/public_html/404.shtml
    [Sat Dec 4 04:20:02 2004] [warn] NameVirtualHost 67.19.143.254:80 has no VirtualHosts
    [Sat Dec 4 04:20:02 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    --
    [Sat Dec 4 05:18:13 2004] [error] [client 83.84.13.192] File does not exist: /home/ces7org/public_html/iquality/404.shtml
    [Sat Dec 4 05:18:13 2004] [error] [client 83.84.13.192] File does not exist: /home/ces7org/public_html/iquality/1/moie/images/bluelinebg.png
    [Sat Dec 4 05:18:13 2004] [error] [client 83.84.13.192] File does not exist: /home/ces7org/public_html/iquality/404.shtml
    [Sat Dec 4 05:18:51 2004] [error] [client 70.178.163.221] File does not exist: /home/deepdown/public_html/www.deepdownwellness.com/board/templates/alexis/images/background.gif
    [Sat Dec 4 05:19:08 2004] [warn] NameVirtualHost 67.19.143.254:80 has no VirtualHosts
    [Sat Dec 4 05:19:08 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    --
    [Sat Dec 4 05:20:06 2004] [error] PHP Warning: main(themes//footer.php): failed to open stream: No such file or directory in /home/pdxnews/public_html/phplinks/index.php on line 117
    [Sat Dec 4 05:20:06 2004] [error] PHP Warning: main(themes//footer.php): failed to open stream: No such file or directory in /home/pdxnews/public_html/phplinks/index.php on line 117
    [Sat Dec 4 05:20:06 2004] [error] PHP Warning: main(): Failed opening 'themes//footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pdxnews/public_html/phplinks/index.php on line 117
    [Sat Dec 4 05:20:26 2004] [error] [client 70.178.163.221] File does not exist: /home/deepdown/public_html/www.deepdownwellness.com/board/templates/alexis/images/background.gif
    [Sat Dec 4 05:22:55 2004] [warn] NameVirtualHost 67.19.143.254:80 has no VirtualHosts
    [Sat Dec 4 05:22:55 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    ....

    [Sun Dec 5 00:32:40 2004] [error] [client 66.196.91.225] File does not exist: /home/narcolep/public_html/robots.txt
    [Sun Dec 5 00:32:40 2004] [error] [client 66.196.91.225] File does not exist: /home/narcolep/public_html/404.shtml
    [Sun Dec 5 00:32:47 2004] [error] [client 24.220.110.74] File does not exist: /home/dizsquad/public_html/favicon.ico
    [Sun Dec 5 00:32:47 2004] [error] [client 24.220.110.74] File does not exist: /home/dizsquad/public_html/404.shtml
    [Sun Dec 5 00:34:20 2004] [warn] NameVirtualHost 67.19.143.254:80 has no VirtualHosts
    [Sun Dec 5 00:34:20 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
     
  4. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    Nothing there gives a reason why it would be crashing. Maybe try recompiling apache to see if that will help some. Is there anything you notice happening before it crashes?
     
  5. esupport.org.ua

    esupport.org.ua Well-Known Member

    Joined:
    Nov 16, 2004
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    I am recompile apache may times! This is happening all time, after I install cPanel on RH ES on Dual Xeon.
     
Loading...

Share This Page