问题
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