Skip to content

Instantly share code, notes, and snippets.

@leighghunt
Created January 6, 2016 20:16
Show Gist options
  • Save leighghunt/a66275ed04100cb838de to your computer and use it in GitHub Desktop.
Save leighghunt/a66275ed04100cb838de to your computer and use it in GitHub Desktop.
  • Per server:
sudo apt-get install apache2 mysql-server php5 php5-gd php5-mysql php5-curl php5-tidy
curl -s https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
sudo composer self-update
sudo vim /etc/php5/apache2/php.ini
  date.timezone = Pacific/Auckland
sudo a2enmod rewrite
sudo vim /etc/apache2/apache2.conf 
  <Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
  </Directory>
sudo service apache2 restart
  • Per site:
sudo composer create-project silverstripe/installer /var/www/html/<site name>
sudo chown -R www-data:www-data /var/www/html/<site name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment