【nginx】nginx 服务器经常出现No input file specified.但是重启php后正常

nginx 服务器经常出现No input file specified.但是重启php后正常,然后又会随着时间No input file specified.出现的频率慢慢变高知道,一直No input file specified.phpgin!
网上的那些人都是扯淡,全都是在复制,粘贴的。
有没有大神知道,请教一下这是怎么回事?

回答

搞了半天,终于找到解决 方案:

vim fastcgi.conf

将下面这行,注释

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

然后,重启lnmp

除了网上说的配置问题,还应该考虑是文件权限问题,或文件被占用等,可以查看一下nginx日志,

# 查看nginx日志文件

tail -f /var/log/nginx/error.log

是因为开启了防跨目录设置,需要注释掉 fastcgi_param PHP_ADMIN_VALUE配置项。
官方:https://lnmp.org/faq/lnmp-vho...
【nginx】nginx 服务器经常出现No input file specified.但是重启php后正常

以上是 【nginx】nginx 服务器经常出现No input file specified.但是重启php后正常 的全部内容, 来源链接: utcz.com/a/83650.html

回到顶部