How to restart Apache on the Mac

Over the years, the command for restarting Apache has changed. E.g. here are some:

/etc/init.d/apache2 restart

rcapache2 restart

sudo service apache2 restart

sudo restart apache2

sudo apachectl restart

For even more options see:

I finally got fed up of having to work out which option I needed and wrote a simple Mac menu bar app called Mescalero (after the Apache tribe) that lets you restart the Apache web server using a simple GUI. It’s in Beta right now. Sign up to join as a beta user or to be notified once it is formally released here:


Leave a Reply

Your email address will not be published. Required fields are marked *