When I run php oil test from the command line I get the fatal error below. I upgraded to version 1.5.1 and made the changes for Monolog. I am sure mu logs folder is writable so I am not sure what is happening:
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/home/user/Sites/depot/fuel/app/../logs/2013/02/16.php" could not be opened: failed to open stream: Permission denied' in /home/user/Sites/depot/fuel/packages/log/src/Monolog/Handler/StreamHandler.php:71
When I check the long directory listing for permissions on the file causing the error here is what I get:
-rw-r--r-- 1 www-data www-data
I guess I don't understand who writes to the log file when I run the test: is it the owner which in this case is www-data or is it me as part of the group or other? Also if its the owner is writing the file why am I getting a permission denied error?
I personally only work with the group. I give that write rights where needed, make sure both the webserver user and all users that need commandline access are member of that group, and set the group 'sticky' so new files automatically get the correct group.