Restart Apache if failed

This bash script check web site every 5 minutes, restart the web server if web site is not responding.

Create a file

Add

In above code, replace https://YOUR_DOMAIN.EXTN/ with your sites actual url.

Make it executable

Create a cronjob

Add

See Server Monitoring

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *