On Fri, Jun 09, 2006 at 10:01:03AM -0700, Wim Kerkhoff wrote:
> Hi Richard,
> 
> Thanks for the reply!
> 
> Richard Dice wrote:
> >Wim Kerkhoff wrote:
> >  
> >>After some fun of installing all the dependencies via Debian's apt-get
> >>and CPAN, I managed to finally get a login screen. But when I enter
> >>rdice/foobar, I get a rather ugly Carp error screen. The following
> >>shows up in Apache's log:
> >>
> >>[Thu Jun  8 21:52:34 2006] app.cgi: Error executing class callback in
> >>prerun stage: Permission denied at /usr/share/perl/5.8/CGI/Carp.pm
> >>line 314.
> >>[Thu Jun  8 21:52:34 2006] app.cgi:     (in cleanup) Permission denied
> >>at /usr/share/perl/5.8/CGI/Carp.pm line 314.
> >>
> >>    
> 
> >>Any ideas on this one? I'm a stumped, as nothing in /usr/local/caf
> >>matches a grep for cleanup or prerun...
> >>
> >>    
> >It would be in CGI/Application/Framework.pm, whereever your Perl library
> >site is.
> Is that where you think this is happening? I find it strange that the 
> error messages don't indicate CGI/Application/* at all.

No, the message is coming from CGI/Application.pm.  The messed up file
and line number are because C::A::F sets $Carp::CarpLevel without
localizing it, I think.

> 
> I thought Carp is just a logging module? Strange that it has permission 
> errors.

I had this problem too on an install.  The permissions errors are
because certain files/directories need to be writeable by apache.

On my box, in /usr/local/caf/framework, I have:

drwxr-sr-x  2 www-data www-data 4096 2006-05-20 14:03 logs
drwxr-sr-x  3 rick     rick     4096 2006-05-23 08:50 projects
drwxr-sr-x  3 www-data www-data 4096 2006-05-23 09:10 sessions
drwxr-sr-x  2 rick     rick     4096 2006-05-19 19:00 sql
drwxr-sr-x  2 www-data www-data 4096 2006-05-19 19:00 sqlite

Also sessions/locks needs the same permissions.

HTH,

-- 
Rick Delaney
[EMAIL PROTECTED]
_______________________________________________
caf mailing list
caf@lpi.org
http://list.lpi.org/cgi-bin/mailman/listinfo/caf

Reply via email to