I was rather surprised and disappointed to learn that Web Sharing was removed from Mountain Lion.
According to this post, it’s possible to bring back.
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 FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
and restart Apache with sudo apachectl restart
.
And PHP has been hidden as well, but again thanks to this article, it can come back as well.
Uncomment these lines by removing the leading pound sign in /etc/apache2/httpd.conf:
- LoadModule rewrite_module libexec/apache2/mod_rewrite.so
- LoadModule perl_module libexec/apache2/mod_perl.so
- LoadModule php5_module libexec/apache2/libphp5.so