LEMP

Instalar un servidor LEMP

Probado en Ubuntu 16.04 xenial

apt update
apt upgrade
apt install mariadb-server
mysql_secure_installation
apt install nginx
apt install php-fpm php-mysql

/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;
}