Lnmp cannot parse php files. you can access html files and directly Download PHP files.

Source: Internet
Author: User
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

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.