Web Sharing in OS X Mountain Lion

Here's the second in a series of tips on how to get Mountain Lion to work for you. This post discusses the disappearance of "Web Sharing" from the Sharing panel, and what to do in its absence.

Open up the Sharing panel in System Preferences, and you’ll see that Web Sharing is no longer listed here.


Luckily, this is only a visual (GUI) change. You can still turn on web sharing by sending commands to Apache. The quickest fix I found is to use Terminal to send commands:

  1. Open Terminal to use the following commands. You’ll need to be an admin on the computer.
  2. You’ll need to begin all commands with “sudo”. You’ll be asked to enter your password the first time you type a command beginning with “sudo”). This is normal.
  3. To start Apache:
    sudo apachectl start
  4. Top stop Apache:
    sudo apachectl stop
  5. To restart Apache:
    sudo apachectl restart
  6. To list the version of Apache:
    httpd -v
  7. If you want Apache to load every time you restart, type this into Terminal:
    sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist

If you run into any problems, feel free to comment on this and I’ll reply with solutions as I can find them.

One Reply to “Web Sharing in OS X Mountain Lion”

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.