Nginx + php-fpm some webpages are blank

Source: Internet
Author: User
Nginx + php-fpm part of the web page shows blank nginx + php-FPM-FCGI, some pages of some websites display blank (note: not all dynamic pages can not be displayed) what is going on?
For example, the old version of zencart's Lanting template is normal in the background (the default pseudo-static feature is disabled in the background, but), the foreground is blank, the frontend and backend of the new version of Lanting are blank, and the corresponding official zencart is normal, taobao Empire's Taobao app homepage blank other pages are normal.
The error logs of nginx and php are found, and no error logs are generated.
Found online: nginx configuration file missing
Fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name;
I saw what I did.

When installing the latest directadmin panel in debian, I selected the newly added nginx custom installation and installed two versions of php, 5.3 and 5.5, no matter which version of php is used, this problem occurs.
As for the above mentioned programs, they have run well in the apache php5.3 and 5.4 environments.
Thank you!


Reply to discussion (solution)

Not all dynamic pages are displayed.
Indicates that the environment configuration is basically correct, but the error caused by the use of the expired function on pages that cannot be displayed cannot be ruled out.

Thank you!
I also suspected that the php version was too high and the web page was using obsolete functions, so I switched to php5.3 and then tested it again, however, the zencart old version of the Lanting template can be displayed normally in the apache php5.3 environment (php5.3 is not supported originally, and an error is reported. it can be displayed normally by modifying related functions ), in addition, the new version of Lanting is based on zencart1.51, and zencart1.51 supports php5.3. as a template, the old version of Lanting does not support php5.2!
Is there a conflict between installing both php with FPM-FCGI at the same time? (Because I checked the online information before and installed two versions of php to run two versions of php simultaneously through different ports and different running modes)

Are you running two different php versions at the same time?
Conflicts are normal because they use dynamic link libraries of the same name, while dynamic link libraries of different versions are slightly different.

Since some php pages can still run normally, this should not be the problem.

The installation script of the directadmin panel is installed. I just installed two php files, one 5.3 and the other 5.5. after installation, I checked the php directory, which is php53 php55, the FPM configuration file also has two, and the dynamic link library should also be placed separately. which version of php is used for a website under this user's nginx. configuration Switch in conf.
In this case, I am the most likely to use obsolete functions? That's why I am confused. it can be run in apache. As for the related support components, it will be automatically detected when zencart is installed. they are all supported!
The latest version of nginx will automatically identify htaceess. because the rules in it are not suitable for nginx, the page will not be displayed, but I deleted the htaccess under the root directory.
I feel that nginx is pseudo-static. On the one hand, some applications do not provide the corresponding rules, and the conversion is not necessarily completely correct. In addition, you must have the permission to restart nginx or reload the configuration file, so it seems that nginx is not suitable for opening space for others. Is that true?
You can install apache!

Is it more suitable to sell space or use apache?

It makes no sense to guess like this.

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.