How to Restart Apache Locally on Mac OS X

Working with PHP and Apache locally on my Mac, I found myself needing to know how to restart Apache. The method I normally use did not work because for some reason etc/init.d does not exist or could not be found. So I found another command that worked. Simply run the following.

sudo apachectl graceful

graceful reloads the configuration files and gracefully restarts. Any current connections are allowed to complete. That’s it! You just restarted Apache. Easy huh?

Related Posts:

del.icio.us Digg Furl Reddit Google StumbleUpon Technorati Yahoo!

Leave a Reply

Most Popular Posts

Pages

Twitter Updates

  • @matt97 Saw it in front of Quantum of Solace this weekend. Also, the new Watchmen trailer is amazing. 2 days ago
  • Bailing out the auto industry will probably help as much as bailing out the financial industry, which is to say not at all. Let's not do it. 2 days ago
  • Saw the new Watchmen trailer last night with Quantam of Solace. Man it looks so awesome! I can't wait to see it. 3 days ago
  • More updates...

Profiles