Oct 032007
 

Sponsored Link

Sometimes you want to restart your Apache server after changing some configuration in your virutual hosts,sites etc, but you have few hundred clients currently downloading files from your server and you don’t want to disconnect them.

You need to use the following command

#/etc/init.d/apache2 graceful

This will gracefully restart your Apache with new configuration without affecting your client’s connections.

 Posted by at 4:42 pm

  3 Responses to “Restart Apache Server without affecting existing connections”

  1. Hey,
    Yet another new apache command for me,
    Thanks, I’ve learned alot :>
    ~ Tony

  2. Hi,

    Shouldn’t it be: # apache2ctl graceful

    On my Debian install (Lenny), if I type:
    # /etc/init.d/apache2 graceful
    I simply get:
    Usage: /etc/init.d/apache2 {start|stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean|status}.

    Which version of Debian are you referring to?

    Regards
    Pierrick

  3. on debian you use reload or force-reload. These do graceful

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>