

Press Ctrl+O followed by Enter to save these changes.Replace both occurrences of /Library/WebServer/Documents with /Users/david/Sites (instead of david use your name which can be found at the top of your terminal next to the home icon).Go back to Terminal and enter sudo nano /etc/apache2/nf.Save index.php in the Sites folder you created.

Open your favorite text editor and create a file called index.php with the following code:.Create a new folder and name it Sites (The Safari icon shown below gets added automatically to the Sites folder as shown below).This will take you to your home directory, which will also be whatever your computer is named in this case it's david.

#XAMPP FOR MAC SIERRA DOWNLOAD INSTALL#
Mac already comes with PHP, so you don’t need to install it from PHP.net. Open Safari (or your browser of choice), type localhost in the address bar, and press enterĬan’t believe it’s that easy? It is! You should now see It works! in the browser.Type sudo apachectl start and press enter.Open Terminal by clicking on the magnifying glass at the top right corner of your screen and searching for Terminal.
