Last active
December 4, 2015 19:03
-
-
Save khanhicetea/daf22e9e782995254358 to your computer and use it in GitHub Desktop.
Ubuntu PHP Box
This file contains hidden or 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
#!/bin/bash | |
sudo apt-get update -y | |
# Add repository | |
sudo apt-get install -y python-software-properties | |
sudo add-apt-repository ppa:ondrej/php5-5.6 -y | |
sudo apt-add-repository ppa:rwky/redis -y | |
sudo apt-add-repository ppa:chris-lea/node.js -y | |
sudo apt-get update -y | |
# Install system tools | |
sudo apt-get -y install zip htop vim screen memcached beanstalkd zsh | |
# Install MySQL | |
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install mysql-server mysql-server-5.6 | |
mysqladmin -u root password passwd | |
# Install PHP | |
sudo apt-get install -y php5 php5-cli php5-common php5-xdebug php5-json \ | |
php5-curl php5-dev php5-xsl php5-intl php5-gd php5-mysqlnd \ | |
php5-readline php5-xmlrpc php5-imap php5-memcached \ | |
php5-mcrypt php5-redis php5-xdebug | |
curl -sS https://getcomposer.org/installer | php | |
sudo mv composer.phar /usr/local/bin/composer | |
# Install git | |
sudo apt-get install -y git | |
git config --global color.branch auto | |
git config --global color.diff auto | |
git config --global color.status auto | |
# Install Apache2 | |
sudo apt-get install -y apache2 curl | |
sudo a2enmod rewrite | |
sudo apt-get install -y libapache2-mod-php5 | |
# Install NodeJS | |
sudo apt-get install -y nodejs | |
sudo npm install -g grunt-cli | |
sudo npm install -g bower | |
sudo npm install -g gulp | |
# ZSH | |
wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh | |
chsh -s /bin/zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment