Restart Apache in Mac OS X

I always seem to forget this, so I’m going to post it here for easy reference.

To restart the Apache web server service you can run the following command in a Mac OS X Terminal window:

sudo /usr/sbin/apachectl restart
Share