Restart Apache without closing open connections

Home -> Internet -> HTTP -> Apache

14196 views

From the computer of: qmchenry (338 recipes)
Created: Sep 24, 2003     Updated: Jul 17, 2004


1 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

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

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.




1 Recipe comments: View comments

Restart Apache without closing open connections by bofh468



Related recipes:

  HowTo: Reboot the Apache Server Safely
  Test the Apache configuration file httpd.conf
  Stop Apache server processes
  Rewrite domain.com to www.domain.com using htaccess in Apache
  Password protect a web directory with .htaccess

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.