sudo apt-get update sudo apt-get install nginx sudo ufw allow 'Nginx HTTP' sudo ufw status sudo apt-get install mysql-server sudo apt-get install php-fpm php-mysql sudo vim /etc/php/7.0/fpm/php.ini cgi.fix_pathinfo=0 sudo systemctl restart php7.0-fpm sudo vim /etc/nginx/sites-available/default server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.php index.html index.htm index.nginx-debian.html; server_name server_domain_or_IP; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; } location ~ /\.ht { deny all; } } sudo nginx -t sudo systemctl reload nginx