HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to restart server every 10 min Apache2 Ubuntu

7,773 views November 10, 2013 4:09

Watch on YouTube
ChannelOss Barkovsky

Description from the creator

This is a script using crontab -e to restart the apache server, or any script you may want to lauch a daily basis.
just start your putty command interface.
creat a .sh file
nano /var/www/reboot.sh
* if you dont have nano type apt-get install nano
then in nano type /etc/init.d/apache2 restart
then ctrl + x Then y then enter
then chmod the file to let the server execute it.
chmod 777 /var/www/reboot.sh
then type crontab -e
and write the following
*/10 * * * * /var/www/reboot.sh
and ctrl+x and y and Enter
And then server will do the restart.sh command line every 10 min!
Enjoy!

About this tutorial

Oss Barkovsky published this 4:09 video tutorial on November 10, 2013. It has been watched 7,773 times on YouTube.

Category
Education
Duration
4:09
Published
November 10, 2013
Views
7,773
Likes
14

Tags

Share

This tutorial in other languages