2019-08-13-Start-apache-server
Start Terminal
Enter following command (after replacing userNameHere with your user name)
sudo vi /etc/apache2/users/userNameHere.confPaste 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 startLaunch 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 stopRestart server
sudo apachectl restartLast updated
Was this helpful?