首页 > 其他 > 详细

The stream or file "/data/www/laravel/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied

时间:2019-11-24 00:18:06      阅读:835      评论:0      收藏:0      [点我收藏+]

转载至:https://cloud.tencent.com/developer/ask/170024

Linux 部署 Laravel项目,运行报错

The stream or file "/data/www/laravel/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied

网上找到如下解决方法,测试有效

 

Web服务器用户和组依赖于你的Web服务器和操作系统。找出你的Web服务器用户和组使用以下命令的内容。对于nginx使用:

ps aux|grep nginx|grep -v grep

技术分享图片

用于apache:

ps aux | egrep ‘(apache|httpd)‘

cd /data/www/laravel/ 目录执行

chown -R $USER(用户):web用户组 storage

技术分享图片

 

 

 

The stream or file "/data/www/laravel/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied

原文:https://www.cnblogs.com/chenjiangbin/p/11920412.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!