LEMP
Instalación
Instalar un servidor LEMP (probado en Ubuntu 16.04 xenial)
apt update apt -y upgrade apt -y install mariadb-server mysql_secure_installation apt -y install nginx apt -y install php-fpm php-mysql
Configuración
/etc/php/7.0/fpm/php.ini
cgi.fix_pathinfo=0
/etc/nginx/sites-available/default
index index.php index.html; location ~ \.php$ { include snippets/fastcgi-php.conf; # With php7.0-fpm fastcgi_pass unix:/run/php/php7.0-fpm.sock; }