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