xueling022 2014-12-14 07:41 采纳率: 0%
浏览 3174

lnmp 无法解析php文件

nginx和php-fpm都可以正常启动9000端口也正常,可以访问html文件,不能访问php文件,
访问php文件的时候直接下载,这是我nginx.conf的配置
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 index.php;
62 fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;

63 #include fastcgi.conf;

64 include fastcgi_params;
请哪位大神指点下

  • 写回答

4条回答 默认 最新

  • JingGe_HELLO 2014-12-14 07:44
    关注

    不知道,问其他人吧!

    评论

报告相同问题?