我只是git clone
一个我的存储库,其中包含一个Laravel 5.1项目。我已经按照正常步骤进行了设置和运行(设置了Web服务器,数据库等)。现在,我转到配置的网址,并收到以下错误消息:
ErrorException in compiled.php line 6648:
file_put_contents(/3c7922efc24ab13620cd0f35b1fdaa61): failed to open stream: Permission denied
任何想法是它试图访问哪个文件夹?
为了解决这个问题,我需要创建一些我的安装中缺少的文件夹。您要求www用户可以读写以下文件夹:
/storage
/storage/cache
/storage/framework
/storage/framework/sessions
/storage/framework/views
/storage/framework/cache
/storage/logs
另外,将文件夹权限设置为775
。从根目录运行命令:sudo chmod -R 755 storage
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句