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

Stop server

sudo apachectl stop

Restart server

sudo apachectl restart