Thank you sir. That worked and I just sang your praises as a "responsive"
package maintainer on perlmonks.org/.
That reminder of the need for apache to be able to write to the log's parent
directory got me moving again. I put the log in /tmp and everything started
working.
And as a security precaution, I'm wondering if it is possible to move this log
out of /tmp, without risking some other file system heirarchy to the risks of
letting apache write to it? Any ideas on this one?
-- Hugh
On Thu, 23 Feb 2006 09:55:17 -0800 (PST)
Mike Schilli <m@xxxxxxxxxxxxxxx> wrote:
> 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@xxxxxxxxxxxxxxx
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> log4perl-devel mailing list
> log4perl-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/log4perl-devel
>
>
--
--
Hugh Esco
250-352-9361
he@xxxxxxxxxxxxxxxxxxxxx
RCK Computer Services
http://reclaimedcomputers.ca/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
|