Lnmp cannot parse the php file. you can access the html file to access the php file and directly download the configuration file I modified under nginx.
Both nginx and php-fpm can start Port 9000 and access html files, but cannot access php files,
Download the php file directly when accessing it. this is my nginx. conf configuration.
Location /{
43 root html;
44 index index.html index.htm index. php;
45}
Location ~ . Php $ {
59 root/usr/html;
60 fastcgi_pass 127.0.0.1: 9000;
61 fastcgi_index. php;
62 fastcgi_param SCRIPT_FILENAME/scripts $ fastcgi_script_name;
63 # include fastcgi. conf;
64 include fastcgi_params;
Which of the following experts can give you some advice?
Reply to discussion (solution)
After so long, none of them let you know?
Can someone solve this problem?
That's because you have not configured the parameters. Nginx cannot parse php files