I've just installed nginx and php7.0-fpm on clear debian 9 and tried to configure it by standard way, but when i try to access http://mysite/test.php i get blank page. There aren't any errors in /var/log/nginx/error.log or /var/log/php7.0-fpm.log files (i get 200 answers, but page is blank). My configs files below..
/var/www/html/test.php
<?php phpinfo(); ?>
nginx.conf
http {
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
server {
listen 80;
server_name _;
root /var/www/html;
index test.php;
location ~* \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi.conf;
fastcgi_pass 127.0.0.1:9000;
}
}
#include /etc/nginx/conf.d/*.conf;
#include /etc/nginx/sites-enabled/*;
}
/etc/php/7.0/fpm/pool.d/www.conf
[www]
user = www-data
group = www-data
listen = 127.0.0.1:9000
listen.owner = www-data
listen.group = www-data