Nginx 1.6.1 white screen, fastcgi_params vs fastcgi.conf

I upgraded my production Ubuntu box from nginx 1.6.0-1+trusty0 to 1.6.1-2+trusty0 today and broke my php5-fpm configuration, resulting in the white screen of death for my sites.

The fix is the edit /etc/nginx/wordpress.conf and change this line:

include fastcgi_params;


include fastcgi.conf;

Alternately, you can add a SCRIPT_FILENAME line to your config as bedrock-ansible does as of this commit.

If you’re using bedrock-ansible to provision your production servers, you should change the template roles/nginx/templates/wordpress.conf.j2

Some background on the difference between fastcgi_params and fastcgi.conf is here.

With nginx 1.6.0-1+trusty0, the file /etc/nginx/fastcgi_params contains the line:

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

After upgrading to 1.6.1-2+trusty0, that line is gone, so SCRIPT_FILENAME is no longer set.

Yep, we dealt with this on bedrock-ansible:

See and