no input files specified (持续更新)

  1. 这个错误原因可能不止一个,这里会持续记录遇到的不同原因以及解决方法☞
  2. Windows本地配置yii项目,出现No input files specified 的错误。现在说一下这一次我遇到这个错误的原因
    location ~* .php {
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME fastcgi_script_name;   //因为疏忽大意,后面的参数写错了
            include fastcgi_params;
        }

    正确写法应该是

    location ~* .php {
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;  //这才是正确的
            include fastcgi_params;
        }
  3. 第二个情况就是访问的路径下没有文件,比如访问test.com/web/ybyc/yy.php?c=control&m=index&a=index,  出现 no input files specified,是因为ybyc 下面没有yy.php文件, 解决方法上传yy.php 文件即可
原文地址:https://www.cnblogs.com/bneglect/p/12143894.html