Thursday, November 21, 2024
HomeHTTPApache web serverRestart Apache without closing open connections

Restart Apache without closing open connections

After making changes to Apache’s configuration file (httpd.conf), it is necessary to restart Apache for the changes to take effect. A normal restart will close active connections which may cause problems for users.


To restart Apache gracefully without aborting open connections or to start Apache if it is not running:

apachectl graceful

If apachectl is not in your PATH and you don’t know where it is, refer to the recipe Find a file by name to find the location of apachectl, then run it with the fully qualified path, for example:

/usr/local/apache/bin/apachectl graceful

Quinn McHenry
Quinn McHenry
Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

LATEST REVIEWS

Recent Comments

error: Content is protected !!