Page 1 of 1

How To Restart Apache Automatically After Crash?

Posted: Wed Oct 25, 2017 8:19 am
by arnlweb
Restarting Apache Service Automatically If It is Fails

I am using this cron and it's working fine...

Edit Cron Tab....

Code: Select all

crontab -e
And add this...

Code: Select all

* * * * * /usr/sbin/service apache2 status > /dev/null || /usr/sbin/service apache2 start