Run this using the following:
curl -L https://raw.github.com/gist/3675060/{FILENAME}.sh | sudo bash -s
#!/bin/bash | |
add-apt-repository ppa:nginx/stable -y | |
add-apt-repository ppa:ondrej/php5 -y | |
apt-get update | |
apt-get dist-upgrade -y | |
apt-get install -y php5-cli php5-fpm php-apc php5-mysql php5-mcrypt php5-curl nginx-full | |
#replace the fpm config with ours | |
curl https://raw.github.com/gist/3674885/fpm-www.conf > /etc/php5/fpm/pool.d/www.conf | |
#replace php.ini with ours | |
curl https://raw.github.com/gist/3674885/fpm-php.ini > /etc/php5/fpm/php.ini | |
curl https://raw.github.com/gist/3674885/cli-php.ini > /etc/php5/cli/php.ini | |
shutdown -r now |
#!/bin/bash | |
cat "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | |
apt-get install -y python-software-properties | |
add-apt-repository ppa:nginx/stable -y | |
add-apt-repository ppa:ondrej/php5 -y | |
add-apt-repository ppa:chris-lea/node.js -y | |
apt-get update | |
apt-get dist-upgrade -y | |
apt-get install -y php5-cli php5-fpm php-apc php5-mysql php5-mcrypt php5-curl php5-xdebug mysql-server-5.5 git zsh nginx-full nfs-common nodejs npm | |
#make a mount point for host fs | |
mkdir /mnt/hostnfs | |
#this bit assumes certain network setup and username and code locations | |
cat "192.168.56.1:/Users/sandfox/code /mnt/hostnfs nfs soft,intr,rsize=8192,wsize=8192 0 0" >> /etc/fstab | |
#replace the fpm config with ours | |
curl https://raw.github.com/gist/3674885/fpm-www.conf > /etc/php5/fpm/pool.d/www.conf | |
#replace php.ini with ours | |
curl https://raw.github.com/gist/3674885/fpm-php.ini > /etc/php5/fpm/php.ini | |
curl https://raw.github.com/gist/3674885/cli-php.ini > /etc/php5/cli/php.ini | |
shutdown -r now |
These probably need some tailoring and they are mostly here for educational purposes at the moment.
You should definitely fork this and personalise them.