5中的权限被拒绝

5中的权限被拒绝

本文介绍了file_put_content ...无法打开流:Laravel 5中的权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该错误在下面提到:-

ErrorException in Filesystem.php line 81:
   file_put_contents(/var/www/html/Training-management-system/storage/framework/views/bcb68ba8b65b7fabca5fe88709fb00b6): failed to open stream: Permission denied

我可以在Google上搜索它,但无法获得确切的解决方案.所以,我很感激如果有人能帮助我解决问题.

I can google itbut not get the exact solution. SO I am thankful if anyone help me to solve it out.

推荐答案

是文件权限问题,如lesssugar所述,您需要为存储文件夹提供书面权限,因此请转到html/Tranining-management-system.文件夹,然后您就可以做到:

is a file permissions issue as lesssugar said , you need to give writte permissions to the storage folder , so go to your html/Tranining-management-system.. folder an then you can do :

chmod -R 0777 storage/

这将更改为以递归方式写访问.

That will change to writte access Recursively .

请阅读docs中的配置部分:

Please read the configuration section in docs :

http://laravel.com/docs/master#configuration

您必须对缓存文件夹执行相同的操作.

You have to do the same with the cache folder.

这篇关于file_put_content ...无法打开流:Laravel 5中的权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 01:35