neolaser
neolaser

Reputation: 6907

Kohana Logs file writable but permission denied

I have checked the install.php and it gives me the green light on the logs file. However, my application gets an error saying

ErrorException [ 2 ]: file_put_contents(/my/app/path/logs/2013/03/04.php): failed to open stream: Permission denied ~ SYSPATH/classes/Kohana/Log/File.php [ 90 ]

Upvotes: 0

Views: 1674

Answers (2)

user2086641
user2086641

Reputation: 4371

I am also faced the same issue,i solved it with help of below comment to make all sub directories writable.

 chmod -R 777 cache/ logs/  

This may help future referrer.

Upvotes: 2

roomcays
roomcays

Reputation: 947

Even if logs/ directory exists and have proper permissions set, it's subdirectories (like logs/2013/ and logs/2013/03) could have improper permissions, for example due to some file copying or so... Be sure that all subdirectories allow writting for user/group/other.

Upvotes: 0

Related Questions