KohanaException:目录 APPPATH\cache 必须可写
我正在尝试在 wamp 服务器中运行 kohana-3 项目,但出现以下错误
Kohana_Exception [ 0 ]:目录 APPPATH\cache 必须可写,
请帮助。
以前这工作正常。
i am trying to run a project of kohana-3 in wamp server but getting following error
Kohana_Exception [ 0 ]: Directory APPPATH\cache must be writable
please help.
Previously this was working fine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须将缓存文件夹设置为可写。
请记住,通常在 WAMP 中,PHP 用户是“nobody”,无权访问您的文件夹,因此您必须将文件夹设置为可写。
You must set your cache folder to be writable.
Bare in mind that usually in WAMP the PHP user is 'nobody' which doesn't have access to your folders, therefore you must set your folders to be writable.
检查文件是否确实存在(应用程序/缓存),Kohana 中该文件夹为空,某些版本控制系统和其他软件通常会删除并忽略空文件夹。
如果不存在,请创建该文件夹并在其中插入一个空白文件(即empty.txt)。如果错误仍然存在,请授予适当的权限。
Check whether the file actually exists (application/cache), this folder comes empty with Kohana, and some versioning systems and other software usually delete and ignore empty folders.
If it does not exist, create the folder and insert a blank file in it (ie, empty.txt) if the error persists, give the appropriate permissions.
哦,是的,我昨天读到了某人的答案,但今天才弄清楚。我所做的是:
然后就是这样。希望有帮助
Oh yeah, I read an answer from someone yesterday but I only figured it out today. What I did was this:
Then thats it. hope it helps