Restart Apache on Mac OS X

October 15th, 2012

Warning: This post is 11 years old. Some of this information may be out of date.

This is here for reference as I keep forgetting how to restart apache on Mac OS X.
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