Results 1 to 3 of 3

Thread: Apache Restarting Nightly

  1. #1
    Member orty's Avatar
    Join Date
    Jun 2004
    Location
    Bend, Oregon
    Posts
    105
    cPanel/WHM Access Level

    Root Administrator

    Default Apache Restarting Nightly

    Every night or two, I get an email roughly like so:

    Code:
    SUBJ:httpd on myserver.net status: failed
    MSG:httpd failed @ Tue Mar  6 01:46:17 2012. A restart was attempted automagically.
    
    Service Check Method:  [socket connect]
    
    Reason: Timeout while trying to connect to service: Died at /usr/local/cpanel/Cpanel/TailWatch/ChkServd.pm line 561.
    
    
    Number of Restart Attempts: 1
    Apache comes backup just fine, but I'd like to figure out why it's dying in the first place.

    Looking at the Apache Error logs, I'm seeing this around that time:

    Code:
    [Tue Mar 06 01:47:07 2012] [warn] child process 25013 still did not exit, sending a SIGTERM
    [snip some RSA common name certificate stuff]
    [Tue Mar 06 01:47:20 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Tue Mar 06 01:47:20 2012] [notice] ModSecurity for Apache/2.6.3 (http://www.modsecurity.org/) configured.
    [Tue Mar 06 01:47:20 2012] [notice] ModSecurity: APR compiled version="1.4.5"; loaded version="1.4.5"
    [Tue Mar 06 01:47:20 2012] [notice] ModSecurity: PCRE compiled version="8.21"; loaded version="8.21 2011-12-12"
    [Tue Mar 06 01:47:20 2012] [notice] ModSecurity: LUA compiled version="Lua 5.1"
    [Tue Mar 06 01:47:20 2012] [notice] ModSecurity: LIBXML compiled version="2.7.8"
    [Tue Mar 06 01:47:20 2012] [notice] Original server signature: Apache
    [snip some RSA common name certificate stuff]
    [Tue Mar 06 01:47:25 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_bwlimited/1.4 PHP/5.2.17 Apache configured -- resuming normal operations
    Any ideas or other places I should look?

    -Jake
    Jake Ortman: Jake-of-all-Trades Geek/Blogger

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,054
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Apache Restarting Nightly

    At the bottom of this thread you've started, several Similar Threads, like this one might be useful to you:
    Why is apache restarting every two hours?

  3. #3
    Member orty's Avatar
    Join Date
    Jun 2004
    Location
    Bend, Oregon
    Posts
    105
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Apache Restarting Nightly

    Oooh...piped logs. Must have missed that in the change logs. I'll give that a whirl and see if that helps. That was the only thing I didn't already have checked (as my logs are all rotating properly, so nothing's getting too large).

    Thanks!
    Jake Ortman: Jake-of-all-Trades Geek/Blogger

Similar Threads

  1. Why is apache restarting every two hours?
    By aww in forum cPanel & WHM Discussions
    Replies: 9
    Last Post: 01-24-2012, 02:09 PM
  2. Restarting apache
    By icare in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 11-17-2006, 04:14 AM
  3. Apache not restarting properly
    By russellhosting in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 10-22-2006, 08:36 PM
  4. Apache Failing and not restarting - PLEASE HELP
    By Chriz1977 in forum cPanel & WHM Discussions
    Replies: 11
    Last Post: 10-19-2006, 04:02 PM
  5. Apache not restarting
    By compunet2 in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 05-20-2003, 06:30 PM