Restarting Apache/httpd
Did a little bit of Apache reading after a client query yesterday, it seems restarting httpd is not all that it seems!
start – start httpd
startssl – start httpd with SSL enabled
stop – stop httpd
restart – restart httpd if running by sending a SIGHUP or start if
not running
fullstatus – dump a full status screen; requires lynx and mod_status enabled
status – dump a short status screen; requires lynx and mod_status enabled
graceful – do a graceful restart by sending a SIGUSR1 or start if not running
Is the normal course of events from apachectl, but what about if we want to restart with SSL?
A route around this as sugeested by someone is to remove all the stuff in the apache config file, or altertively edit the HTTPD definitiona tthe top of apachectl so that it ALWAYS passes -DSSL), then use normal start/restart/graceful
Now we’re on the subject of graceful, I have found out that it mean no existing or pendings connections are lost during the restart!
Comments (1)
Leave a Reply
What I'm Doing...
- Android why can't I create a repition of a calendar event every other week? I can do weekly, every xth of the month but not every other! 11 hrs ago
- Get a private beta invite for Connect.Me. It's your reputation card for the social web http://t.co/ZWV66HMM 12 hrs ago
- Waiting for a callback from the doctor, why can't they tweet me or do a Skype diagnosis? 1 day ago
- RT @CatherineQ: Congrats team in white shiny pants that won. Commiserations to team in white shiny pants that didn't win. #Superbowl < ;) 1 day ago
- Looking at superbowl tweets, sounds like I didn't miss much! 1 day ago
- More updates...



When I used to administer an apache server, I always restarted using the graceful command.
As I remember (it was a few years ago), the graceful restart stops the current request handler from accepting new connections, but allows it to deal with existing requests. Once all of its request have been dealt with it is killed off. Whilst this is happenning, a new request handler is made to deal with new requests, which then remains as the sole request handler when the other one is killed off. Quite a nice feature.