I agree with the general approach suggested by obs, but think there are a few typos in there, and would suggest running
Code:
crontab -e
and adding the following line
Code:
0 * * * * /etc/init.d/apache2 restart
(or you could use the following syntax instead)
Code:
@hourly /etc/init.d/apache2 restart
and then save the file and exit the editor. To disable this, just run
crontab -e again and remove the line you added, save, and exit.
It should not be necessary to restart cron.
(
man 5 crontab will tell you about the available syntax and give examples.)