FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught think\exception\ErrorException fail

系统运行一直正常,但在2021跨到2022的元旦时节,出问题了,经查询报错

FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught think\exception\ErrorException failed to open stream: Permission denied 

#0 [internal function]: think\Error::appError(2, 'error_log(/www/...', '/www/wwwroot/ba...', 128, Array)
#1 /www/wwwroot/baiao/vendor/thinkphp/library/think/log/driver/File.php(128): error_log('---------------...', 3, '/www/wwwroot/ba...')
#2 /www/wwwroot/baiao/vendor/thinkphp/library/think/log/driver/File.php(86): think\log\driver\File->write('---------------...', '/www/wwwroot/ba...', false, true)
#3 /www/wwwroot/baiao/vendor/thinkphp/library/think/Log.php(224): think\log\driver\File->save(Array, true)
#4 /www/wwwroot/baiao/vendor/thinkphp/library/think/Error.php(94): think\Log->save()
#5 [internal function]: think\Error::appShutdown()
#6 {main}
  thrown in /www/wwwroot/baiao/vendor/thinkphp/library/think/log/driver/File.php on line 128" while reading response header from upstream, client: 112.96.115.210, server: 47.100.226.161, request: "POST //task/taskNoticeList HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-73.sock:", host: "www.baiao.xin", referrer: "https://servicewechat.com/wxe25470ed1954f7c9/1/page-frame.html"
2022/01/01 11:23:42 [error] 1418702#0: *695294 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught think\exception\ErrorException: error_log(/www/wwwroot/baiao/runtime/log/202201/01.log): failed to open stream: Permission denied in /www/wwwroot/baiao/vendor/thinkphp/library/think/log/driver/File.php:128
 

解决方式

找到了对应的日志文件,创建了一个202201的目录,但系统没有权限读写造成

chmod 777 202201就可以了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值