История изменений
Исправление KSergeyP, (текущая версия) :
В /etc/nginx/sites-available/default добавил обработку php:
index index.php index.html index.htm index.nginx-debian.html;
И
location ~ .php$ {
include snippets/fastcgi-php.conf;
# With php-fpm (or other unix sockets):
fastcgi_pass unix:/run/php/php-fpm.sock;
# With php-cgi (or other tcp sockets):
#fastcgi_pass 127.0.0.1:9000;
}
Исходная версия KSergeyP, :
В /etc/nginx/sites-available/default добавил обработку php:
index index.php index.html index.htm index.nginx-debian.html;
И
location ~ .php$ { include snippets/fastcgi-php.conf; # With php-fpm (or other unix sockets): fastcgi_pass unix:/run/php/php-fpm.sock; # With php-cgi (or other tcp sockets): #fastcgi_pass 127.0.0.1:9000; }