0

我检查了 install.php,它给了我日志文件的绿灯。但是,我的应用程序收到一条错误消息

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 ]
4

2 回答 2

2

我也面临同样的问题,我在下面的评论的帮助下解决了这个问题,使所有子目录都可写。

 chmod -R 777 cache/ logs/  

这可能有助于未来的推荐人。

于 2013-08-26T10:44:23.973 回答
0

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.

于 2013-03-03T22:55:33.147 回答