laravel he stream or file "..laravel-2019-02-14.log" could not be opened: failed to open stream: Permission denied

错误:The stream or file "/var/www/jianshu/storage/logs/laravel-2019-02-14.log" could not be opened: failed to open stream: Permission denied
解决:

安装完 Laravel 后,需要给这两个文件配置读写权限:storage 目录和 bootstrap/cache 目录
关闭Selinux,重启服务器
修改/etc/selinux/config 文件
SELINUX=enforcing 改为 SELINUX=disabled

我的解决方案是找到storage/logs删除不属于www用户的日志文件,这可能是你在使用artisan命令过程中产生的。

原文地址:https://www.cnblogs.com/AlexanderZhao/p/11231109.html