I tried to install nginx and PHP7 with FPM using this tutorial: https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-ubuntu-14-04
When I try to access any .php file I get 502 Bad Gateway.
When I try to restart php7.0-fpm, I get this:
sudo service php7.0-fpm restart
stop: Unknown instance:
php7.0-fpm start/running, process 5379
My nginx config:
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
My server is Ubuntu Server 14.04