Forked from mishak87/ubuntu-12.04-php5.5+nginx+nodejs.sh
Created
March 30, 2014 10:30
-
-
Save adam187/9870735 to your computer and use it in GitHub Desktop.
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
apt-get update | |
apt-get install -q -y python-software-properties | |
add-apt-repository ppa:ondrej/php5 | |
add-apt-repository ppa:chris-lea/node.js | |
apt-get install -q -y php5 php5-fpm php5-mssql php5-gd php5-imagick php5-mysql php5-curl php5-cli php5-pgsql | |
apt-get remove -q -y apache2 | |
apt-get install -q -y nginx mysql-server git curl nodejs | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer | |
npm -g install less bower | |
# add per instance users | |
NAME=test | |
sudo useradd -d /home/$NAME -m $NAME | |
mysql -u root -p | |
create database $NAME default collate 'utf8_general_ci'; | |
GRANT ALL PRIVILEGES ON `$NAME`.* TO '$NAME'@'localhost' IDENTIFIED BY '$NAME'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment