VPS侦探论坛

 找回密码
 注册
查看: 4731|回复: 4

诡异的的 no input file specified.

[复制链接]
发表于 2017-7-22 07:10:04 | 显示全部楼层 |阅读模式

现在安装的lnmp 1.4 但是总是出现no input file specified.这个问题,从其一下php-fpm就正常,但是总反复之前用1.3没有发现这个情况,后来php降级到1.3的版本发现好了很多,但是最近发现每天早上还会出现no input file specified. 也是重启php-fpm就可以了。
最后发现每次重启nginx 如果不重启php 时不时也会出现no input file specified. 现象。
这种现象是nginx 版本的问题么?
我随后在把nginx版本降级试试吧,每次过一晚上就出现这个问题很诡异啊!
环境是阿里云ubuntu 16 64, thinkphp5
军哥有没有好的建议让我排场一下啊?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-7-22 08:10:07 | 显示全部楼层

nginx 错误信息



PHP message: PHP Warning:  Unknown: failed to open stream: Operation not permitted in Unknown on line 0
Unable to open primary script: /home/wwwroot/public/index.php (Operation not permitted)" while reading response header from upstream, client: 39.108.219.234, server: api.xxxx.com, request: "GET /user/setting?timestamp=1500681073&platform=web HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "api.xxxx.com"
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-7-22 08:35:51 | 显示全部楼层

问题好像找到了 在观察一下


好像是禅道的nginx 配置的问题

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;    # 改成
#fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";    # 官方配置
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-7-22 09:19:26 | 显示全部楼层



no input file specified 基本上都是由于网站配置里的root和防跨目录里的设置不一样导致的
移除防跨目录:https://lnmp.org/faq/lnmp-vhost-add-howto.html#user.ini
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-7-22 09:32:49 | 显示全部楼层

谢谢


军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-17 20:31 , Processed in 0.026474 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表