Nginx + php-fpm = Blank page if *.php

I found solution here and problem was solver after 3 day of researching!

The blank page is a silent error saying “this script doesn’t exist”.

In /etc/nginx/conf.d/default.conf you need this line : fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;

Full:

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ .php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
}

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься.

Я spam бот