|
From: Bernie L. <Ber...@nt...> - 2002-03-07 08:20:14
|
Chris, I see, said the blindman - or at least I'm starting to! 1. I didn't realise you had private apache log files. 2. Your documentation needs to specify to chown the error directory to "nobody" as well as all the others (html/cache/overflow/uploads). (Incidentally on my platform - Mandrake - the user is apache.) 3. I don't seem to have the superuser.pm you mention: bash-2.05$ pwd /home/oi/bltest bash-2.05$ find . -name "*ser.pm" ./pkg/base_user-1.49/bltest/Handler/User.pm ./pkg/base_user-1.49/bltest/Handler/NewUser.pm ./tmplib/bltest/Handler/User.pm ./tmplib/bltest/Handler/NewUser.pm ./tmplib/OpenInteract/User.pm ./tmplib/OpenInteract/Error/User.pm ./tmplib/OpenInteract/SQLInstall/User.pm ./tmplib/OpenInteract/Handler/User.pm ./tmplib/OpenInteract/Handler/NewUser.pm bash-2.05$ 4. I changed the Handler as you suggested, but still only get: superuser_id: 1 Level: [8] However, know I know about the log files, I'll do some more digging and let you know what I find. Regards, Bernie. On Thursday 07 March 2002 5:12 am, Chris Winters wrote: > On Wed, 2002-03-06 at 17:49, Bernie Ledwick wrote: > > Chris, > > > > Tried your perl debug, but not sure what it means. > > > > Output is below. > > > > Regards, > > > > Bernie. > > > > bash-2.05$ perl /tmp/bl.pl > > Using (/home/oi/bltest) for 'website_dir'. > > superuser_id: 1 > > Level: [8] > > #bash-2.05$ cat /tmp/bl/pl > > #!/usr/bin/perl > > > > use strict; > > use OpenInteract::Startup; > > > > my $HANDLER = 'bltest::Handler::superuser'; > > Is this handler name correct? That is, is there a handler class in your > site in a file called 'superuser.pm'? The handler should be set to a > class in your site which acts as a handler. In your case, the following > should work: > > my $HANDLER = 'bltest::Handler::User'; > > The reason being that if you set $HANDLER to something not in the system > then it's not so instructive when you change the user ID we're fetching > to something that is not the superuser. > > Anyway, the only other thing I can think of is to ensure in the website > you're actually logged in as the superuser. You should be able to see a > line in your error log like: > > OpenInteract::Auth::user (33) >> User found: superuser > > near the top of the entries for a particular request. Make sure you > check the log for the exact request you're having problems with. This > could be an issue where your cookie isn't set properly, is expiring or > is somehow corrupt. I've had the corrupted cookie problem when running > OI on Win2000 with the Apache::Cookie module and either Netscape or IE > (can't remember which). Using CGI::Cookie fixed it right up. > > Chris |