Skip to content

Instantly share code, notes, and snippets.

@johnmeilleur
Last active August 29, 2015 14:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmeilleur/baf7f8912c480254c6f3 to your computer and use it in GitHub Desktop.
Save johnmeilleur/baf7f8912c480254c6f3 to your computer and use it in GitHub Desktop.
Install Statamic
# Update Ubuntu with the latest updates
sudo apt-get update
# Install Apache
sudo apt-get --yes install apache2
# Enable mod_rewrite and mod_headers Apache modules
sudo a2enmod rewrite
sudo a2enmod headers
# Set Apache 'AllowOverride None' to 'AllowOverride All'
sudo sed -i "s/AllowOverride None/AllowOverride All/g" /etc/apache2/apache2.conf
# Install PHP
sudo apt-get --yes install php5 php5-common php5-cli libapache2-mod-php5 php5-mcrypt php5-gd php5-curl
# Enable mcrypt
sudo php5enmod mcrypt
# Install Git
sudo apt-get --yes install git
cd /var/www
# Clone statamic site
sudo git clone https://github.com/johnmeilleur/statamic
# Update DocumentRoot
sudo sed -i "s/\/var\/www\/html/\/var\/www\/statamic/g" /etc/apache2/sites-available/000-default.conf
# Restart Apache
sudo service apache2 restart
cd statamic
# Update permissions
sudo chmod -R 777 _cache
sudo chmod -R 777 _logs
sudo chmod -R 777 _content
sudo chmod -R 777 _config/users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment