Currently Being ModeratedJul 26, 2012 2:59 AM (in response to TheSmokeMonster)
Thank you for your reply. However, I am afraid it's not what I am talking about.
Web sharing is a feature that user can enable web server in his Mac and publishes content via HTTP/HTTPS. In previous version, I can enable it by just one click. But now it's gone.
Currently Being ModeratedJul 26, 2012 3:00 AM (in response to TheSmokeMonster)
No, TheSmokeMonster, web sharing (acting as a web server) is not the same thing as internet sharing (acting as a router).
Leo Chung, I do not know how to turn web sharing back on. Sorry.
Currently Being ModeratedJul 26, 2012 3:12 AM (in response to Leo Chung)
I haven't downloaded and installed ML yet, but this functionality is definitely something I will need to retain. Try typing this command into Terminal:
sudo apachectl -k start
Let me know if this works. By the way if you subsequently want to stop the service enter this command instead:
sudo apachectl -k stop
Currently Being ModeratedJul 26, 2012 3:18 AM (in response to Leo Chung)
Here's a good page on how to deal with Apache (the web server) in Mountain Lion:
Currently Being ModeratedJul 26, 2012 3:21 AM (in response to TheSmokeMonster)
Thanks markwmsn and TheSmokeMonster.
I believe most of Mac developers still do work on Mac laptops such as Macbook Pro and Macbook Air, coming with OS X Mountain Lion. Server version is probably for production services only in enterprises.
Originally, the built-in web server is apache and very stable for development and web sharing. However, if the decision is made because Apple wants to push people to use Server version. They are definitely going wrong.
Currently Being ModeratedJul 26, 2012 3:46 AM (in response to thomas_r.)
Thanks Zyriab and Thomas A Reed,
I am now able to start/stop/restart apache server and the "It works!" test page is alive.
However, the original http://localhost/~username doesn't work this time - A "403 Forbidden" page shows up.
1. mod_userdir.so is loaded and configuration file /private/etc/apache2/extra/httpd-userdir.conf is well set.
2. /Users/username/Sites/index.html is there and permission is granted for others (-rw-rw-rw-).
Still trouble shooting the problem now.
Currently Being ModeratedOct 8, 2012 11:32 PM (in response to zedd45)
I found this article was very helpful for restoring my development environment: