Restart Apache on Mac OS X Mountain Lion


Posted by Andrew McCombe on Mon Oct 15, 2012

This is here for reference as I keep forgetting how to restart apache on Mac OS X Mouintain Lion. Here’s how to do it:

sudo /usr/sbin/apachectl restart

Enter password and you’re done.

You can also start and stop Apache by using the ‘start’ and ‘stop’ parameters:

sudo /usr/sbin/apachectl stop
sudo /usr/sbin/apachectl start