In OS X Mountain Lion the Web Sharing preference panel has been removed. The Apache web server remains bundled with Mac OS X though, but you’ll need to turn to the command line to enable the web server.
More info here: http://reviews.cnet.com/8301-13727_7-57481978-263/how-to-enable-web-sharing-in-os-x-mountain-lion/
and here: http://coolestguyplanettech.com/downtown/install-and-configure-apache-mysql-php-and-phpmyadmin-osx-108-mountain-lion
- Create and edit the following file
/etc/apache2/users/USERNAME.conf(replace "USERNAME" with the actual account) - Its contents should be as follows:
<Directory "/Users/USERNAME/Sites/">
Options Indexes Multiviews
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
</Directory> - start the actual server:
sudo apachectl start - accessing
http://127.0.0.1/will simply display It works! - files stored under
/Users/USERNAME/Sites/will be accessible fromhttp://127.0.0.1/~USERNAME - stop/restart your Apache web server with
sudo apachectl stop|restart
More info here: http://reviews.cnet.com/8301-13727_7-57481978-263/how-to-enable-web-sharing-in-os-x-mountain-lion/
and here: http://coolestguyplanettech.com/downtown/install-and-configure-apache-mysql-php-and-phpmyadmin-osx-108-mountain-lion
No comments:
Post a Comment