zoukankan      html  css  js  c++  java
  • nginx php No input file specified 怎样处理?

    配置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脚本



  • 相关阅读:
    常用的Dos命令
    关于CSS3
    数据渲染
    jQuery中的AJAX
    AJAX
    面向对象3
    克隆对象、对象继承
    面向对象2
    面向对象1
    面向对象
  • 原文地址:https://www.cnblogs.com/zhchoutai/p/6992558.html
Copyright © 2011-2022 走看看