User Tools

Site Tools


apache:restart_apache

Apache - Restart Apache

Issue the following command:

service apache2 restart

or

apachectl -k restart 

Restart Gracefully

Ifrestarting the web server on a live website, it should be done gracefully.

A graceful restart tells the web sever to finish any active connections before restarting.

  • This means that active visitors to the site will be able to finish downloading anything already in progress before the server restarts.
sudo /etc/init.d/apache2 graceful

apache/restart_apache.txt · Last modified: 2023/07/17 09:43 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki