Setting up localhost Mac OSX

Posted on in Environment

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

  1. Backup httpd.conf
sudo cp /etc/apache2/httpd.conf /etc/apache2/httpd.conf.bak
  1. Open file in text editor
sudo nano /etc/apache2/httpd.conf
  1. Hit [CTRL + W] and type ?DocumentRoot? (without quotes). Then hit ?Enter.?

  2. Change the path to your folder

  3. Hit [CTRL + O], then hit Enter. Then, hit [CTRL + X] to exit.

  4. Restart server:

apachectl restart

Post a Comment

Your email is never published nor shared.
Required fields are marked *