NGINX+PHP-FPM Partial page display blank

Source: Internet
Author: User
Tags php error php error log
Nginx + php-fpm-fcgi, some of the site's pages are blank (note: Not all dynamic pages can not be displayed) what is going on?
For example, Zencart old Orchid Pavilion template backstage Normal (into the background of the default turn on the pseudo-static closed, but), the front desk is blank, the new version of the Orchid Pavilion front backstage are blank, and the corresponding official Zencart all normal, Amoy guest empire of the Amoy program home blank other pages normal.
Found the Nginx, PHP error log, did not generate error log records.
Online Search: Nginx configuration file is missing
Fastcgi_param script_filename $document _root$fastcgi_script_name;
I have seen what I have.

I chose the new Nginx Custom installation when I installed the latest version of the DirectAdmin panel under Debian, and loaded with two versions of php,5.3 and 5.5, regardless of which version of PHP it is.
As for the procedure mentioned above, it works well in Apache php5.3, 5.4 environment.
Thank you!


Reply to discussion (solution)

Not all dynamic pages cannot be displayed
Indicates that the environment configuration is basically no problem, but cannot exclude errors that are caused by using outdated functions in pages that cannot be displayed

Thank you!
I have also suspected that the PHP version is too high, the use of obsolete functions in the webpage caused, so I switched to php5.3 again test still the same, but zencart the old version of the Pavilion template before the Apache php5.3 environment can be normal display (originally does not support php5.3, error, through the modification of relevant functions, etc. can be displayed normally), and the new version of the Orchid Pavilion is based on zencart1.51, zencart1.51 is to support php5.3, is supposed to do the template will not be the same as the old version of the Orchid Pavilion, made only support PHP5 .2 Now!
Is it the same time that you install two PHP that use fpm-fcgi to conflict? (Because before the online information, loaded two versions of PHP are mostly through different ports, different operating mode to run two versions of PHP)

Have you run two different versions of PHP at the same time?
Conflicts are normal because they use dynamic-link libraries of the same name, and different versions of dynamic-link libraries vary slightly

Since some of the PHP pages are still working properly, this should not be the case.

is directadmin panel installation script installed, I just chose to install two PHP, a 5.3, a 5.5, after installation I looked at the PHP directory, respectively, php53 php55,fpm configuration file is also two, dynamic link library should also be placed separately, Which version of PHP a website uses is configured to switch in the nginx.conf under that user.
So my question is, is the probability of using obsolete functions the most? Then wondered, obviously under Apache can run, as for the relevant support components, when the installation of Zencart will be automatically detected, are supported!
The most new version of Nginx will automatically recognize the htaceess, because the rules are not suitable for nginx so that the page does not display, but I have the root directory of htaccess deleted or the same.
Feel Nginx pseudo-static this piece, on the one hand some applications do not give the corresponding rules, the conversion is not necessarily completely correct, and also have to have the operation Nginx Restart or reload the configuration file permissions, so it seems nginx is not suitable for use to open space for others, is it?
Hey, you can still pretend Apache!

Is it better to sell space or to use Apache?

There's no point in guessing 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.