Setting up localhost Mac OSX
Follow these instructions to setup your localhost on Mac OSX without installing XAMPP.
Make sure Web Sharing is enabled:
Go to System preferences > Sharing > enable Personal Web Sharing
- Backup httpd.conf
sudo cp /etc/apache2/httpd.conf /etc/apache2/httpd.conf.bak
- Open file in text editor
sudo nano /etc/apache2/httpd.conf
Hit [CTRL + W] and type “DocumentRoot” (without quotes). Then hit “Enter.”
Change the path to your folder
Hit [CTRL + O], then hit Enter. Then, hit [CTRL + X] to exit.