Home >Backend Development >PHP Tutorial >nginx + php-fpm page displays blank problem_PHP tutorial
This afternoon I configured the nginx+php environment and am going to put in WordPress to play with. But after configuring the page, the php page kept showing blank. At first, I thought it was a permissions issue. After changing the permissions to 755, it still didn't work. Then I opened the logs of nginx and php, but there were no errors reflected in the logs. Continue trying to change the php log to no avail. After going home at night, I continued to try for a long time, and finally found that there was a piece of configuration information missing in the nginx configuration file.
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Because of the lack of this configuration information, nginx did not send the php file address to be parsed to phpfpm, so the page was always blank and there was no parsing error message.