do everything as root
sudo su
update system:
apt-get update
apt-get upgrade
reboot:
shutdown -r now
install web components
apt-get -y install git nginx php5-fpm php5-cli php5-dev php5-curl php5-imagick php5-mcrypt php5-mysql php5-geoip php5-tidy php5-xsl php5-xmlrpc php5-xdebug php5-apcu php-pear build-essential libpcre3-dev uuid-dev libcurl4-openssl-dev
PHP Extensions:
pecl install oauth uuid pecl_http jsonc
echo "extension=http.so" >> /etc/php5/mods-available/http.ini
echo "extension=oauth.so" >> /etc/php5/mods-available/oauth.ini
echo "extension=uuid.so" >> /etc/php5/mods-available/uuid.ini
echo "extension=json.so" >> /etc/php5/mods-available/json.ini
php5enmod opcache pdo apcu curl geoip imagick mysqli mysql pdo_mysql readline tidy xdebug xmlrpc xsl http json uuid oauth
setup directories:
mkdir /var/www
sudo chown -R `whoami`:www-data /var/www
chmod -R ug+rw /var/www
setup Nginx config:
nano /etc/nginx/sites-available/default.conf
service php5-fpm restart
service nginx restart