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 restarting very often.

Discussion in 'EasyApache' started by tank, Jun 21, 2014.

  1. tank

    tank Well-Known Member

    Joined:
    Apr 12, 2011
    Messages:
    236
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chicago, IL
    cPanel Access Level:
    Root Administrator
    Ok guys i updated my apache with some rules to help my scripts form timing out. It is causing apache to restart ofen.

    Code:
    Thu Jun 19 23:44:18.004932 2014] [core:notice] [pid 5809] AH00094: Command line: '/usr/local/apache/bin/httpd -D SSL'
    [Thu Jun 19 23:44:18.004983 2014] [mpm_prefork:warn] [pid 5809] AH00167: long lost child came home! (pid 5810)
    [Thu Jun 19 23:44:18.005013 2014] [mpm_prefork:warn] [pid 5809] AH00167: long lost child came home! (pid 5811)
    [Thu Jun 19 23:45:00.034783 2014] [mpm_prefork:notice] [pid 5809] AH00171: Graceful restart requested, doing restart
    [Thu Jun 19 23:45:01.004343 2014] [mpm_prefork:notice] [pid 5809] AH00163: Apache/2.4.9 (Unix) OpenSSL/1.0.0-fips mod_bwlimited/1.4 mod_fcgid/2.3.9 configured -- resuming normal operations
    [Thu Jun 19 23:45:01.004381 2014] [core:notice] [pid 5809] AH00094: Command line: '/usr/local/apache/bin/httpd -D SSL'
    [Thu Jun 19 23:45:01.004424 2014] [mpm_prefork:warn] [pid 5809] AH00167: long lost child came home! (pid 7854)
    [Thu Jun 19 23:45:01.004445 2014] [mpm_prefork:warn] [pid 5809] AH00167: long lost child came home! (pid 7855)
    [Thu Jun 19 23:45:28.792651 2014] [mpm_prefork:notice] [pid 5809] AH00171: Graceful restart requested, doing restart
    Here is my post include editor for apache.

    Code:
    <IfModule mod_fcgid.c>
    FcgidMinProcessesPerClass 0 
    FcgidMaxProcessesPerClass 8 
    FcgidMaxProcesses 150 
    FcgidIdleTimeout 100 
    FcgidProcessLifeTime 120 
    FcgidIdleScanInterval 30
    FcgidMaxRequestLen 1073741824
    FcgidProcessLifeTime 8200
    FcgidIOTimeout 8200
    FcgidConnectTimeout 300
    </IfModule>
    Any ideas, what would be causing apache to restart.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. tank

    tank Well-Known Member

    Joined:
    Apr 12, 2011
    Messages:
    236
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chicago, IL
    cPanel Access Level:
    Root Administrator
    Turns out it is restarting only at like 11:30 but it is doing it twice each night.

    I am using a FCGI not Mod_ruid2. Sorry if i dont see the connection :)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Have you already enabled Piped Logging on this server?

    "WHM Home » Service Configuration » Apache Configuration » Piped Log Configuration"

    This will stop the automatic graceful restart of Apache from occurring every two hours.

    Thank you.
     
Loading...

Share This Page