Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
737 views
in Technique[技术] by (71.8m points)

thinkphp5在windows服务器上经常出现写入缓存失败

file_put_contents(C:phpStudyPHPTutorialWWWapp untimecache4f819a837d54a6ed09abc77a8560a66f.php): failed to open stream: Permission denied

环境用的是phpstudy,在使用cache缓存数据时,经常报这种错误,但是windows上文件夹不存在权限问题啊,有大佬遇到过么,求指点!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
这个肯定是权限问题,failed to open stream: Permission denied就是权限不允许的意思,你在缓存的目录文件夹右击,然后属性->安全->编辑,然后改成完全控制试试,应该能解决这个问题

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...