View Full Version : restarting apache: no apachectl?
jnoreiko
September 24th, 2005, 07:03 AM
I'm RTFMing, and TFM says:
apachectl -k graceful
(at http://httpd.apache.org/docs/2.0/stopping.html)
But ubuntu says:
bash: apachectl: command not found
I've found on the forums I can do
sudo /etc/init.d/apache2 restart
but why doesn't it work as in the manual?
jnoreiko
September 24th, 2005, 08:46 AM
It seems
sudo apache2ctl restart
works.
esaym
January 28th, 2007, 09:32 AM
Its apache2ctl? Thank you!
crouton
January 31st, 2007, 06:21 PM
FYI, it's useful to know the /etc/init.d/<program> nomenclature, as it's used for a wide variety of system services.
MJN
February 1st, 2007, 08:42 AM
Indeed, use sudo /etc/init.d/apache2 start|stop|restart as this is essentially an 'intelligent' frontend to apache2ctl. Whilst at the moment it doesn't do all that much extra in the future it could well do - best to get in the right habit now!
Mathew
esaym
February 17th, 2007, 10:58 PM
FYI, it's useful to know the /etc/init.d/<program> nomenclature, as it's used for a wide variety of system services.
True. But can it do graceful reboots so it will not kill all the child procs?
apache2ctl -k graceful :p
MJN
February 18th, 2007, 05:40 AM
Sure - sudo /etc/init.d/apache2 reload
Mathew
esaym
February 18th, 2007, 09:34 PM
Sure - sudo /etc/init.d/apache2 reload
Mathew
....oohhhhhh:oops:
MJN
February 19th, 2007, 06:07 AM
I'll concede that it's not necessarilly intuitive that this is what it does so you can be forgiven...
balbir97
February 27th, 2007, 03:34 AM
I'll concede that it's not necessarilly intuitive that this is what it does so you can be forgiven...
hey thanks...u all even mine problem in apache got solved. :)
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.