Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adam187/9870735 to your computer and use it in GitHub Desktop.
Save adam187/9870735 to your computer and use it in GitHub Desktop.
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