LNMP nignx access to the PHP report cannot find a file solution

Source: Internet
Author: User
Tags php tutorial

Background: After using Yum to install LNMP and various dependencies, access PHP file hints such as 650) this.width=650; "Src=" http://s4.51cto.com/wyfs02/M02/7A/B2/ Wkiom1awh3kzmgvvaaat9hbhgww745.png "title=" 1.png "alt=" Wkiom1awh3kzmgvvaaat9hbhgww745.png "/>

Configuration file is approximately: 650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7A/B2/wKiom1awi8nBMD4LAAAyoGU7Zx4095.png "title = "2.png" alt= "Wkiom1awi8nbmd4laaayogu7zx4095.png"/>

Actually change the path information in the configuration file

# Fastcgi_param Script_filename Script$fastcgi_script_name

This section changes to

Fastcgi_param Script_filename/usr/share/nginx/html$fastcgi_script_name

Here is the setup path, where the/usr/share/nginx/html is set according to your file path.

Then restart the Nginx service and test again

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7A/B1/wKioL1awjXPi0iQKAABh-7ckgpM362.png "title=" 3.png " alt= "Wkiol1awjxpi0iqkaabh-7ckgpm362.png"/>

PHP files can already be parsed properly.

This article is from the "zero-based PHP tutorial" blog, so be sure to keep this source http://phpblog.blog.51cto.com/7012109/1740766

LNMP nignx access to the PHP report cannot find a file solution

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.