Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Get Web Sharing back in Mountain Lion System 10.8
If you haven't noticed, Web Sharing has been removed from Mountain Lion. According to Apple, if you need Web Sharing, you should probably look at OS X Server.

Nevertheless, many people want to use Web Sharing, notably to run a local server to test win site design. I've come across two tutorials. One by Brett Terpstra and another by Neil Gee. Finally, Tyler Hall has created a Web Sharing preference pane

Personally, I don't need Web Sharing generally, but I have used it in the past to test web applications. So if you need it, check out the above links.
    •    
  • Currently 2.78 / 5
  You rated: 1 / 5 (36 votes cast)
 
[42,753 views]  

Get Web Sharing back in Mountain Lion | 14 comments | Create New Account
Click here to return to the 'Get Web Sharing back in Mountain Lion ' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Get Web Sharing back in Mountain Lion
Authored by: donmoemu on Jul 30, '12 08:16:30AM

Internet Sharing is still available. Name may have changed, but its still there.



[ Reply to This | # ]
Get Web Sharing back in Mountain Lion
Authored by: auco on Jul 30, '12 08:43:19AM

no, there is Websharing (use your Mac as an internet-server to display html pages) and Internet-Sharing (share the network connection, eg. forward your internet to connected computers, so that they have internet access as well).



[ Reply to This | # ]
Get Web Sharing back in Mountain Lion
Authored by: aardvarko on Jul 30, '12 09:34:55AM

In Apple-talk, "Internet Sharing" is network routing from Ethernet to WiFi (etc.), while "Web Sharing" is HTTP web serving.



[ Reply to This | # ]
Get Web Sharing back in Mountain Lion
Authored by: auco on Jul 30, '12 08:36:49AM

I recommend using MAMP (http://mamp.info). It's open source and all bundled into one application. Clean, safe, easy, no messing around with system configurations. Start/stop your server as you need, even from the dashboard. Use SymLinks if you need the http root somewhere else. This is perfect for the hobby user as well as the professional web developer (btw I'm not related to MAMP).



[ Reply to This | # ]
Get Web Sharing back in Mountain Lion
Authored by: enigmamf on Jul 30, '12 10:03:49AM

I'm an old school fellow, but I think everyone should experience the pleasure of compiling Apache and PHP by hand at least once.

But yeah…. there's also MacPorts!



[ Reply to This | # ]
Get Web Sharing back in Mountain Lion
Authored by: helgsmat on Jul 30, '12 11:10:28AM

so not having MT Lion yet, I would assume that this only affects the toggle in the sharing settings and not turning the web sharing on via terminal with

sudo apachectl start/stop/graceful



[ Reply to This | # ]
The easy way
Authored by: PatrickS on Jul 30, '12 11:43:31AM
Per-user Web Sharing is gone from Preferences but can be easily re-enabled via Terminal.app. Copy the following snippet into /etc/apache2/users/USER.conf:
<Directory "/Users/USER/Sites/">
    Options Indexes MultiViews
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
</Directory>
and restart Apache with sudo killall httpd (restart is triggered by launchd automatically).

[ Reply to This | # ]
The easy way
Authored by: rafa espada on Jul 30, '12 12:34:29PM

i think "sudo apachectl restart/stop/start" is more appropiate.

---
rafa espada
http://www.rafaespada.com



[ Reply to This | # ]
Get Web Sharing back in Mountain Lion
Authored by: wgscott on Jul 30, '12 06:30:02PM
What I noticed is that if you are running a web server, and upgrade, it will leave the webserver enabled, but the apache configuration no longer has individual users' Sites directory paths enabled. You have to re-populate the /etc/apache2/users directory with the appropriate xml files (either use the sample posted above, or what you backed up from 10.7 or earlier). Then restart apache, i.e.,

sudo apachectl graceful
Edited on Jul 30, '12 06:30:32PM by wgscott


[ Reply to This | # ]
Get Web Sharing back in Mountain Lion
Authored by: Lri on Jul 31, '12 07:18:23AM

I had enabled web sharing before upgrading to 10.8, so Apache was already started automatically. The configuration files in /etc/apache2/ were overridden though so I had to do things like enable vhosts again.

Can anyone check if /System/Library/LaunchDaemons/org.apache.httpd.plist exists on a clean install? If it does, sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist would probably have the same effect as enabling web sharing in System Preferences.



[ Reply to This | # ]
Get Web Sharing back in Mountain Lion
Authored by: leamanc on Aug 04, '12 10:42:18PM

Yes, the launchd plist for Apache is there by default.



[ Reply to This | # ]
Get Web Sharing back in Mountain Lion
Authored by: Mandorix on Nov 26, '12 10:50:14AM

I've just upgraded to Mountain Lion. Enabling Apache works for local files (file:/// addresses), but I can't get the server to respond to http:// accesses, either to localhost from an outside system into my server. Firewall? How can I configure around this hangup?



[ Reply to This | # ]
Get Web Sharing back in Mountain Lion
Authored by: mva1991 on May 01, '13 02:07:21PM
Hello, I was trying to run Apache server in my Mac Book. This OS version is 10.8.2. The web sharing option is absent as we all know it. I tried to follow what all is discussed in this forum. I pasted
<Directory "/Users/vinayabhishek/Sites/">
     Options Indexes MultiViews
     AllowOverride All
     Order allow,deny
     Allow from all
</Directory>
in : /etc/apache2/users/username.conf I did sudo apachectl restart After doing all this still I dont see a page on http://localhost/~username what might be the reason... I am just busted and sick with it... Help needed ASAP

[ Reply to This | # ]
Get Web Sharing back in Mountain Lion
Authored by: chalkitguy on May 02, '13 03:45:35PM

you forgot the trailing /
ie: http://localhost/~username/



[ Reply to This | # ]