Restart Apache on Mac OS X Mountain Lion

October 15, 2012

Image for Restart Apache on Mac OS X Mountain Lion from unsplash.com

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