- Start Terminal
- Enter following command (after replacing userNameHere with your user name)
sudo vi /etc/apache2/users/userNameHere.conf
- Paste following into that file & save.
<Directory "/Users/USERNAME/Sites/">
Options Indexes Multiviews
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
</Directory>
- Run following command to start apache server.
sudo apachectl start
- Launch Safari, Chrome, or Firefox.
- Navigate to “http://127.0.0.1” to verify the server is running, you will see an “It Works!” message.
- Move your files to
/Library/WebServer/Documents/
Stop server
sudo apachectl stop
Restart server
sudo apachectl restart