Skip to content

Instantly share code, notes, and snippets.

@bagf
Last active August 29, 2015 13:57
Show Gist options
  • Save bagf/9604380 to your computer and use it in GitHub Desktop.
Save bagf/9604380 to your computer and use it in GitHub Desktop.
Installs PHP dependancies, mysql-server, sass and compass
#!/bin/sh
# Update apt
echo "Update apt..."
apt-get -q=2 update
# Stop interaction
echo mysql-server mysql-server/root_password password unsafepassword | debconf-set-selections
echo mysql-server mysql-server/root_password_again password unsafepassword | debconf-set-selections
# Download and install
echo "Downloading and installing..."
apt-get install -q=2 mysql-client mysql-server mysql-common libmcrypt-dev ruby-full rubygems1.8 memcached unzip zip
echo "Downloading and installing compass..."
gem install sass
gem install compass
echo "Installing php5 build dependencies..."
apt-get build-dep -q=2 php5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment