icare

Registered
Nov 8, 2006
3
0
151
Is there an easy way to restart apache from WHM ?

sorry i dont know about commands... so need a button click :)
 

Stefaans

Well-Known Member
Mar 5, 2002
461
4
318
Vancouver, Canada
If you are a reseller and do not have access to the Restart Services commands, there is of course another way: Any time you Park a Domain or Create a New Account, Apache is restarted as well. Yes, that's not a clean method, but if you are desperate it is an option ;)
 

icare

Registered
Nov 8, 2006
3
0
151
thanks friends.

is there anyway to restart apache after certain period ( 6 hrs, 8 hrs etc) thru cronjob or something?
 

HelloAdam

Well-Known Member
Nov 6, 2005
145
0
166
thanks friends.

is there anyway to restart apache after certain period ( 6 hrs, 8 hrs etc) thru cronjob or something?
In root SSH type

Code:
crontab -e
then

Code:
* 8 * * * service httpd restart
That should restart apache every 8 hours every day...

From,
Adam