Restarting an apache server

Administrator's picture

To restart apache the following commands are required:

for apache version 1.x.x:

service httpd restart

or

service httpd stop

then

service httpd start

for apache version 2.x.x:

apachectl -k stop

or

apachectl -k graceful

source:

Preventing Web Attacks with Apache (Barnett, Addison Wesley 2006)

related links:

apache version 1.3 http://httpd.apache.org/docs/1.3/stopping.html

apache version 2.0 http://httpd.apache.org/docs/2.0/stopping.html

9 people like this