clear
#install nginx
apt-get install nginx -y
#install php
apt-get install php5-fpm php5-mysql -y
#configure php processor
perl -pi -e "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g" /etc/php5/fpm/php.ini
#restart php
service php5-fpm restart
#change to nginx config directory
cd /etc/nginx/sites-available/
#remove default
rm default
#add new default
wget https://gist.githubusercontent.com/webgururobin/599d153a11bd816a2bd762d43d27fff7/raw/ff89dd4e560557977ab31c74884fadea4520c451/default
#restart nginx
service nginx restart
dpkg --configure -a
rm ~/server.sh