Nginx + php7.0-fpm = blank page Nginx + php7.0-fpm = blank page nginx nginx

Nginx + php7.0-fpm = blank page


Try to pass the socket path instead of server:port:

fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;

Also, the server_name _; will work only if a default server is specified, are you sure the 200 code comes from from the url you requested (you should rule out possible failbacks to other vhost)?


Try adding: fastcgi_param SCRIPT_FILENAME $realpath_root/test.php;

You shouldn't have to 777 anything.