Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Apache reboots every day - httpd unavailable

Discussion in 'EasyApache' started by samlar, Jun 12, 2019.

  1. samlar

    samlar Registered

    Joined:
    Jun 12, 2019
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Sydney
    cPanel Access Level:
    Root Administrator
    Hi guys,

    hope this is the right corner to post this issue as it's difficult for me to pin down the origin.
    Basically I am running a Centos 7 box and lately i get notificartions of httpd unavailable and apache shutting itself - rebooting every day / sometimes several times a day intervals of about 3 hours and down-time of about 30 min.

    I post here some log messages:

    Code:
    Notification: The service “httpd” appears to be down.
    
    Reason: Service check failed to complete. Unable to connect to port 80 on 127.0.0.1: Connection refused: Died
    
    Start up log: Jun 11 21:35:42 firefoot.example.net systemd[1]: Starting Apache webserver managed by cPanel EasyApache... Jun 11 21:35:42 firefoot.example.net systemd[1]: Started Apache webserver managed by cPanel EasyApache.
    
    Log messages: [Wed Jun 12 00:13:00.123005 2019] [core:alert] [pid 39679] AH00050: Child 3435 returned a Fatal error... Apache is exiting!
    [Tue Jun 11 21:35:42.407388 2019] [mpm_prefork:notice] [pid 39679] AH00163: Apache/2.4.39 (cPanel) OpenSSL/1.0.2r mod_bwlimited/1.4 configured -- resuming normal operations
    [Tue Jun 11 21:35:42.344311 2019] [:notice] [pid 39676] ModSecurity for Apache/2.9.3 (ModSecurity: Open Source Web Application Firewall) configured.
    [Tue Jun 11 21:13:50.448597 2019] [core:alert] [pid 24331] AH00050: Child 36895 returned a Fatal error... Apache is exiting!
    
    IOStat info: avg-cpu: %user %nice %system %iowait %steal %idle 6.46 0.12 1.01 0.07 0.03 92.32 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn scd0 0.00 0.00 0.00 40 0 vda 9.27 83.29 119.97 31899049 45945224
    
    It seems to me a connection to the Apache service - so let me know if this post is better suited in the Apache category of the forum.

    The server is no again running stable again since the latest log notice above.

    I also noticed when I checked the server and WHM interface after the failure notice, that all services where up and running (service status).

    Any advice would be welcome.

    NB: I ran some EasyApache updates and will monitor if the issue still persists.

    Thanks
     
    #1 samlar, Jun 12, 2019
    Last edited by a moderator: Jun 12, 2019
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @samlar,

    Can you confirm if any third-party Mod_Security rulesets are enabled on this server? Do you notice any output to /usr/local/apache/logs/error_log prior to the times it's reported as down?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. samlar

    samlar Registered

    Joined:
    Jun 12, 2019
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Sydney
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Updating EasyApache 4 resolved all issues. Apache running stable since then.
    All good. Thanks.
     
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice