Apache reboots every day - httpd unavailable

samlar

Registered
Jun 12, 2019
2
1
1
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
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.