A blank page occurs when fastcgi_param runs php in nginx.

Source: Internet
Author: User
A blank page occurs when fastcgi_param runs php in nginx.

  1. Fastcgi_param SCRIPT_FILENAME/home/www/scripts/php $ fastcgi_script_name;
  2. Fastcgi_param QUERY_STRING $ query_string;

Parameter SCRIPT_FILENAME is used by PHP for determining the name of script to execute, and QUERY_STRING contains the parameters of the request.

Therefore, php cannot explain the execution without defining the system variable SCRIPT_FILENAME.

The definition of this variable can be written in the nginx configuration file nginx. conf, or an external file, and then included in nginx. conf using the include method. Articles you may be interested in: The nginx + php-fpm page shows a blank solution about the organizational structure of the nginx + php-fpm configuration file. The php program running under nginx returns 200, but blank pages

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.