NginX Install process Debian apt-get update && apt-get upgrade -y apt-get install -y nginx-full service nginx restart # php5-fpm Install apt-get install -y php5-fpm apt-get install -y php5-mysql php5-curl php5-gd php5-mcrypt apt-get autoremove -y mkdir /var/run/php5-fpm/ echo "cgi.fix_pathinfo=0" >>/etc/php5/fpm/php.ini /etc/init.d/php5-fpm restart nano /etc/nginx/sites-available/default http://pastebin.com/raw.php?i=MBavWnQN # add example.com mkdir -p /usr/share/nginx/www/example.com nano /etc/nginx/sites-available/example.com http://pastebin.com/raw.php?i=TC5aSHby ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/ # Install Mysql apt-get install -y mysql-server apt-get --reinstall install -y bsdutils mysql_install_db /etc/init.d/mysql restart # Install Wordpress cd /usr/share/nginx/www/example.com wget -O latest.tar.gz http://wordpress.org/latest.tar.gz tar zxf latest-ar.tar.gz mv wordpress/* /usr/share/nginx/www/example.com rmdir wordpress mv wp-config-sample.php wp-config.php # Fix WP upload issue chown -R www-data:www-data /usr/share/nginx/www chmod -R g+rwx /usr/share/nginx/www mysql -u root -p CREATE DATABASE IF NOT EXISTS example USE example CREATE USER 'example'@'localhost' IDENTIFIED BY 'PASS'; GRANT ALL PRIVILEGES ON example. * TO 'example'@'localhost';