Web Sharing in OS X Mountain Lion
| Category: Web Design
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:
- Open Terminal to use the following commands. You’ll need to be an admin on the computer.
- 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.
- To start Apache:
sudo apachectl start
- Top stop Apache:
sudo apachectl stop
- To restart Apache:
sudo apachectl restart
- To list the version of Apache:
- 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.