NGINX on Debian ships with new configuration files
I just updated the nginx package which delivered new configuration files and caused the php-fpm worker to fail. There was no error message in none of those files /var/log/nginx/error.log
, /var/log/php-fpm.log
and /var/log/syslog
.
Restarting nginx did not help. When I noticed HTML files got served correctly but PHP files didn’t, I noticed a difference between my old /etc/nginx/fastcgi_params
and the new one.
Missing Parameter
nginx new default /etc/nginx/fastcgi_params
misses SCRIPT_FILENAME
parameter.
To fix php-fpm, you can manually add the line
1 2 3 |
fastcgi_param SCRIPT_FILENAME $request_filename; |
I uploaded my full paremeter list to pastebin.