- Check that Apache is installed by running
httpd -v
in the terminal
- Create the Site folder :
mkdir ~/Sites
- Find your username with
whoami
- Create the config file :
sudo nano /etc/apache2/users/votreuser.conf
- Paste the following code :
<Directory "/Users/votreuser/Sites/">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
- Set the user's right permissions :
sudo chmod 644 /etc/apache2/users/robin.conf
sudo nano /etc/apache2/httpd.conf
and uncomment the following line LoadModule php5_module libexec/apache2/libphp5.so
- restart the apache server :
sudo apachectl restart
- rename the config file
cd ~/etc
sudo cp php.ini.default php.ini
sudo chmod ug+w php.ini
sudo chgrp staff php.ini
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL ADDRESS"
Install GitHub Desktop
Original Article