Script to automatically restart apache service

jamshed_11946

Member
Aug 19, 2010
5
0
51
Hello All,

I need a script/command which will execute automatically when the apache service is down.

Actually, I want to prevent server for being down due to apache downtime and I want that apache should be restarted automatically.

Can anyone help me in this regard.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,542
207
343
Chesapeake, VA
cPanel Access Level
DataCenter Provider
CPanel already monitors the Apache service and tries to restart if down via the taliwatchd system. Click on service manager in WHM and verify the enabled and monitored boxes are checked.