KohanaException : Directory APPPATH\cache must be writable

試著忘記壹切 提交于 2019-12-12 02:40:53

问题


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.


回答1:


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.




回答2:


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.




回答3:


Oh yeah, I read an answer from someone yesterday but I only figured it out today. What I did was this:

  • Go inside application/
  • Create a new folder cache/
  • Go inside cache/
  • Create a empty textfile. (I created empty.txt)

Then thats it. hope it helps



来源:https://stackoverflow.com/questions/7835510/kohanaexception-directory-apppath-cache-must-be-writable

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!