User Tools

Site Tools


apache:restart_apache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
apache:restart_apache [2016/07/04 00:43] – created peterapache:restart_apache [2023/07/17 08:43] (current) peter
Line 1: Line 1:
 ====== Apache - Restart Apache ====== ====== Apache - Restart Apache ======
- 
  
 Issue the following command: Issue the following command:
Line 7: Line 6:
 service apache2 restart service apache2 restart
 </code> </code>
 +
 +or
 +
 +<code>
 +apachectl -k restart 
 +</code>
 +
 +----
 +
 +===== 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.
 +
 +<code bash>
 +sudo /etc/init.d/apache2 graceful
 +</code>
 +
 +----
 +
 +
apache/restart_apache.1467593031.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki