Last active
August 29, 2015 14:23
-
-
Save Kreshnik/cda6c2a07ae4034b2179 to your computer and use it in GitHub Desktop.
LAMP + Tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo apt-get update | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' | |
sudo apt-get install -y vim curl python-software-properties | |
sudo add-apt-repository -y ppa:ondrej/php5 | |
sudo apt-get update | |
sudo apt-get install -y php5 apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-readline mysql-server-5.5 php5-mysql git-core php5-xdebug | |
cat << EOF | sudo tee -a /etc/php5/mods-available/xdebug.ini | |
xdebug.scream=1 | |
xdebug.cli_color=1 | |
xdebug.show_local_vars=1 | |
EOF | |
sudo a2enmod rewrite | |
sed -i "s/error_reporting = .*/error_reporting = E_ALL/" /etc/php5/apache2/php.ini | |
sed -i "s/display_errors = .*/display_errors = On/" /etc/php5/apache2/php.ini | |
sed -i "s/disable_functions = .*/disable_functions = /" /etc/php5/cli/php.ini | |
sudo service apache2 restart | |
curl -sS https://getcomposer.org/installer | php | |
sudo mv composer.phar /usr/local/bin/composer | |
sudo apt-get install -y redis-server memcached beanstalkd | |
sudo sed -i "s/#START=yes/START=yes/" /etc/default/beanstalkd | |
sudo /etc/init.d/beanstalkd start | |
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash - | |
sudo apt-get install -y nodejs npm | |
sudo npm install -g gulp | |
sudo npm install -g grunt-cli | |
sudo npm install -g forever | |
sudo apt-get install -y ruby-full | |
sudo gem install mailcatcher | |
sudo apt-get install git | |
sudo apt-get install -y python-pip | |
sudo pip install supervisor --pre | |
sudo apt-get install -y zsh | |
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment