From: Mike S. <m...@pe...> - 2006-02-23 17:55:30
|
On Thu, 23 Feb 2006, Hugh Esco wrote: > Hello folks. This looks like a great tool. But I'm stumped out the > outset here by some permission issues I've been unable to track > down. Using Log::Log4perl, I'm getting errors in the browser looking > like this: > > There has been an error: Cannot write to '/var/log/apache-ssl/dpr.log': > Permission denied at /usr/local/share/perl/5.8.7/Log/Dispatch/File.pm line 86. > > Although, when I su - www-data (my apache user), I am able to update > the last modification date with the touch command and use vim to > edit the log file, as well. > > Can anyone here please advise why my log file would be inaccessible > to this web application? Thank you for your time. "touch" doesn't require write permissions on the file, appending does: $ touch file $ chmod -w file $ touch file $ echo foo >>file bash: file: Permission denied So, what you need are write permissions on your /var/log/apache-ssl/dpr.log file, either for the owner or the group. By the way, the file appender will create the file according to the specified umask settings if it doesn't exist yet. In this case, it requires write permissions on the directory the file will be located in. -- Mike Mike Schilli m...@pe... |