NGINX+PHP-FPM page shows a blank workaround

Source: Internet
Author: User
Tags parse error blank page
In the Nginx and PHP environment, the configuration of a WordPress, access to find PHP page has been shown blank, at first thought to be a privilege issue, the right to change to 755 or not.

Then, open Nginx and PHP logs, but in the log also found no valuable errors. Continue to try to change the PHP log, still no results.

Finally found is Nginx configuration file inside less write a configuration information: Fastcgi_param script_filename $document _root$fastcgi_script_name;

When the above information is not configured, Nginx does not send the address of the PHP file to be parsed to PHPFPM, so the page is always blank, and there is no parse error message. You may be interested in the article: about the NGINX+PHP-FPM configuration file of the organization structure Nginx under Fastcgi_param run PHP appears blank page problem nginx run PHP program, return 200, but blank page

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.