Letsencrypt automatic certificate renew

To make automatic renew you Letsencrypt certificates you need create crontab job. Here is simple instructions 1. Create /root/certrenew.sh file with content:

2. Make it executable chmod +x /root/certrenew.sh 3. sudo crontab -e 4. Add crontab job. Job for running every day at 3:15AM will be next:

/var/log/le-renew.log Read more…

How to automatically restart MySQL service

Here is instruction how to launch MySQL server after close unexpectedly. 1. Create /root/mysqlfix.sh file with next content:

2. Make it executable chmod +x /root/mysqlfix.sh 3. sudo crontab -e 4. Add crontab job. For 3 min period job will be next:

/var/log/mysqlfix.log – log file Let me know Read more…

How to automatically restart Nginx

Here is instruction how to launch Nginx server after close unexpectedly. 1. Create /root/nginxfix.sh file with next content:

2. Make it executable chmod +x /root/nginxfix.sh 3. sudo crontab -e 4. Add crontab job. For 3 min period job will be next:

/var/log/nginxfix.log – log file Let me know Read more…