首页 > Web开发 > 详细

nginx php No input file specified 如何处理?

时间:2014-07-13 16:16:28      阅读:380      评论:0      收藏:0      [点我收藏+]

配置nginx支持php 出现了No input file specified ?

只要修改下安装目录下的  nginx.conf下的

 location ~ \.php$ {
             root           html;
             fastcgi_pass   127.0.0.1:9000;
             fastcgi_index  index.php;
             fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
             include        fastcgi_params;
         }

修改成

 location ~ \.php$ {
             root           html;
             fastcgi_pass   127.0.0.1:9000;
             fastcgi_index  index.php;
             fastcgi_param  SCRIPT_FILENAME  /usr/local/nginx/html/$fastcgi_script_name;    #安装的绝对路径
             include        fastcgi_params;
         }

重启nginx

/usr/local/nginx/sbin/nginx -s reload

成功运行php脚本



nginx php No input file specified 如何处理?,布布扣,bubuko.com

nginx php No input file specified 如何处理?

原文:http://blog.csdn.net/luozhonghua2014/article/details/37733909

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!