Laravel:laravel.log权限被拒绝 [英] Laravel: laravel.log permission denied
本文介绍了Laravel:laravel.log权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试打开Laravel应用程序时,出现以下错误:
When I try to open my Laravel app I get the following error:
UnexpectedValueException
The stream or file "/laravel/storage/logs/laravel.log" could not be opened:
failed to open stream: Permission denied
这是为什么,我该如何解决?
Why is this and how can I fix it?
推荐答案
在终端中编写以下内容,并确保您位于项目目录中:
Write the following within terminal and ensure you are in the projects directory:
sudo chmod -R 777存储/*
这篇关于Laravel:laravel.log权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文