"laravel.log";无法打开:无法打开流 [英] "laravel.log" could not be opened: failed to open stream

查看:97
本文介绍了"laravel.log";无法打开:无法打开流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在本地OSX机器上安装了Laravel homestead,直到我尝试打开example.app:8000并出现以下错误,一切似乎都进行得很顺利:

I have setup Laravel homestead on a local OSX machine, everything seemed to be going smoothly until I tried to open example.app:8000 and got this error:

Error in exception handler: The stream or file "/home/vagrant/Code/example/app/storage/logs/laravel.log" could not be opened: failed to open stream: Protocol error in /home/vagrant/Code/example/bootstrap/compiled.php:8671

我关注Laravel文档以及有关设置宅基地的Laracast,所以我不确定是什么原因造成的.我可以看到/home/vagrant/Code/example/app/storage/logs/laravel.log不存在,但是我认为这应该自动创建吗?

I followed the Laravel docs as well as a Laracast about setting up homestead, so I am not sure what would be causing this. I can see that /home/vagrant/Code/example/app/storage/logs/laravel.log doesn't exist, but I assume that is something that should be created automatically?

推荐答案

您需要运行以下操作之一:

You need to run one of the following:

  • sudo chmod -R 644 app/storage
  • sudo chmod -R 755 app/storage
  • sudo chmod -R 644 app/storage
  • sudo chmod -R 755 app/storage

这篇关于"laravel.log";无法打开:无法打开流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆