Skip to content

Instantly share code, notes, and snippets.

@jeanbaptistebeck
Last active February 15, 2016 11:18
Show Gist options
  • Save jeanbaptistebeck/b601b9b1370df3508cfd to your computer and use it in GitHub Desktop.
Save jeanbaptistebeck/b601b9b1370df3508cfd to your computer and use it in GitHub Desktop.
Install BrandAndCelebrities blog

Installation process

  • 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

Installing PHP

  • 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

Installing MySQL

Connect to GitHub

git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL ADDRESS"

Bonus

Install GitHub Desktop

Original Article

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment