Laravel 写入日志权限问题 The stream or file “/home/www/storage/logs/laravel.log“ could not be opened in appe
Laravel 写入日志权限问题 The stream or file "/home/www/storage/logs/laravel.log" could not be opened in appe
·
因为权限组的问题,当定时任务执行时,日志文件还会变成root用户组的问题。
在logging配置文件中daily中增加 'permission'=>0666,
在.env文件中 LOG_CHANNEL = daily
更多推荐
已为社区贡献1条内容
所有评论(0)