Home  >  Article  >  Backend Development  >  nginx + php-fpm page displays blank problem_PHP tutorial

nginx + php-fpm page displays blank problem_PHP tutorial

WBOY
WBOYOriginal
2016-07-22 09:02:41772browse

 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.

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/371848.htmlTechArticle This afternoon I configured the nginx+php environment and am going to put it in WordPress to play with. But after configuring the page, the php page kept showing blank. At first, I thought it was a permission issue. After changing the permission to 755, it still...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn