博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
处理file_put_contents failed to open stream
阅读量:2384 次
发布时间:2019-05-10

本文共 373 字,大约阅读时间需要 1 分钟。

在运行时出现了以下错误:

ErrorException in Filesystem.php line 81:file_put_contents(/var/www/mysite/bootstrap/cache/services.json): failed to open stream: Permission denied

从上边的报错可以看出是由于cache目录没有写入的权限,所以给这个目录写入权限:

解决方法:

# sudo chmod -R 777 /var/www/mysite/bootstrap/cache

权限777和755区别:

777是所有用户都有执行,读,写权限,755是root用可执行权限.文件所属用户和其它组用户没有执行权限!

转载于:https://my.oschina.net/corwien/blog/646427

你可能感兴趣的文章
Windows Services for UNIX Version 3.5
查看>>
Linux 测试工具
查看>>
Modifying SSH to Capture Login Credentials from Attackers
查看>>
nikto 2.1 coming
查看>>
How to own a Windows Domain
查看>>
Longcat – multi-protocol stress testing tool
查看>>
数据流0day原理+实践
查看>>
淺談以STIX實現網路威脅情報標準化框架
查看>>
Top IT management trends - the next 5 years
查看>>
推荐 OWASP - Transport Layer Protection Cheat Sheet
查看>>
AutoNessus v1.3.2 released
查看>>
hack tools
查看>>
rhel5中管理swap空间
查看>>
/proc filesystem allows bypassing directory permissions on Linux
查看>>
nginx dos
查看>>
RASP解决方案包括开源方案
查看>>
Linux下共享文件系统文件传输的简单设计(转载)
查看>>
Benchmarking Mail Relays and Forwarders
查看>>
Bash Syslog History Could Lead to Data Leakage
查看>>
Microsoft Infrastructure as a Service Foundations-Multi-Tenant Designs
查看>>