Showing posts with label Apache. Show all posts
Showing posts with label Apache. Show all posts
Friday, November 5, 2010

How to Start or Stop the Apache Web Server on Snow Leopard

These are instructions on how to start, stop, or restart the Apache web server on Snow Leopard.

GUI method:
  1. Open the Sharing prefPane in System Preferences. The checkbox by "Web Sharing" indicates if Apache is started or stopped.
    • To start Apache, check the "Web Sharing" box.
    • To stop Apache, uncheck it.
    • To restart Apache, uncheck then check it.

Command line method:
  1. Open Terminal.
    • Type the following to start Apache:
      sudo apachectl start
    • Type the following to stop Apache:
      sudo apachectl stop
    • Type the following to restart Apache:
      sudo apachectl restart

To test the status of Apache, visit http://localhost in your browser. If the page loads, Apache is started; elsewise it is stopped.