Sunday, October 25, 2009

Restarting Apache on a Mac (Snow Leopard)

Steps:
1. Open up Terminal
2. Type the command and press enter.
sudo /usr/sbin/apachectl restart 
3. Enter your account password (you need to be an Admin)
4. That's about it! Apache will restart (and if you have changed anything in the config, your new config will be loaded) 


Hints:
You can stop apache using a similar command
sudo /usr/sbin/apachectl stop (needs password)


You can start apache using a similar command
sudo /usr/sbin/apachectl start (doesn't seem to need a password)

No comments:

Post a Comment