Haradzieniec
Haradzieniec

Reputation: 9340

Kohana installation: Logs Directory is not writable. Can't change the root of the directory in the bootstrap.php

I've just installed kohana in my new project temp.loc I type in the browser temp.loc and Environment Tests says:

Cache Directory The /work/temp.loc/wwwroot/application/cache/ directory is not writable.

Logs Directory The /work/temp.loc/wwwroot/application/logs/ directory is not writable.

I'm trying to change the path Kohana::$log->attach(new Log_File(APPPATH.'logs')); in bootstrap.php. BUt, after refreshing the browser, the Environment Test still shows the same path /work/temp.loc/wwwroot/application/logs/, the path is not refreshed. Why?

Upvotes: 0

Views: 1179

Answers (1)

pogeybait
pogeybait

Reputation: 3145

Don't change the location in bootstrap, that isn't needed. The reason you are receiving this error message is probably because those two directories aren't writable. If you are on Mac OSX or a linux environment you need to set those directory permissions to 777 i.e. "chmod 777 cache". Both are located on your application directory. This is a common issue that I have to resolve every time I install Kohana on a new server.

Upvotes: 3

Related Questions