nginx下thinkphp访问提示No input file specified

今天配置thinkphp环境忽然访问提示No input file specified

查找资料找到原因是因为在Fastcgi模式下,php不支持rewrite的目标网址的PATH_INFO的解析 ThinkPHP运行在URL_MODEL=2时,会出现 No input file specified.的情况, 

解决办法:

fastcgi_params文件最下面添加

fastcgi_param PHP_ADMIN_VALUE "open_basedir=.:/tmp/:$document_root";


内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://sulao.cn/post/420.html

我要评论

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。