- Login to your server with SSH
- Type
crontab -lto display list of cron jobs, - Type
crontab -eto edit your crontab, - Add
0 4 * * * /etc/init.d/mysqld restartto restart Mysql everyday at 4 AM, - Add
0 5 * * * /etc/init.d/httpd restartto restart Apache everyday at 5 AM and - Add
0 24 * * * /etc/init.d/httpd restartto restart Apache everyday at 12 AM - Save your file,
- Recheck with
crontab -l

Thanks for this information I hope it will help.