Skip to content

Instantly share code, notes, and snippets.

@linchpinstudios
Last active April 11, 2016 17:53
Show Gist options
  • Save linchpinstudios/1fe163b1599d6372bc77 to your computer and use it in GitHub Desktop.
Save linchpinstudios/1fe163b1599d6372bc77 to your computer and use it in GitHub Desktop.
Setup Ubuntu Server

mod_rewrite

#enable mod_rewrite sudo a2enmod rewrite

edit this file...

sudo nano /etc/apache2/sites-available/000-default.conf

and add the following directly below the DocumentRoot directive

<Directory "/var/www/html"> AllowOverride All order allow,deny deny from all

restart the server

sudo service apache2 restart

Problems?

check out the apache logs

tail /var/log/apache2/error.log tail /var/log/php_errors.log

Composer

download the phar file

curl -sS https://getcomposer.org/installer | php

move to be available globally

mv composer.phar /usr/local/bin/composer

Setup GIT

Install Git

sudo apt-get install git

Generate Key

alias pbcopy='xclip -selection clipboard'
mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa
cat /root/.ssh/id_rsa.pub | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment