Linux php 遇到的file_put_contents failed to open stream: Permission denied

解决方法:关闭selinux

在/etc/sysconf下有一个SeLinux文件,使用vi打开,更改其中的SELINUX项的值就可以了。
SELINUX=disable 禁用SeLinux
SELINUX=enforcing 使用SeLinux
SELINUX=Permissive 使用SeLinux,仅记录错误。

重启!

猜你喜欢

转载自blog.csdn.net/wyk9916/article/details/82531620
今日推荐