Do you have a configuration similar to this in httpd.conf:
<Directory /www/domain.com/authcookiedbi>
AuthType Apache2::AuthCookieDBI
AuthName WhatEver
PerlAuthenHandler Apache2::AuthCookieDBI->authenticate
PerlAuthzHandler Apache2::AuthCookieDBI->authorize
require valid-user
# or you can require users:
require user jacob
# You can optionally require groups.
require group system
</Directory>
On Jul 10, 2011, at 8:50 AM, Adam Prime <[email protected]> wrote:
> On 7/10/2011 6:08 AM, Tosh Cooey wrote:
>> So I'm following your advice and going the easy route of apt-get
>> everything.
>>
>> My original server had this config:
>> Apache/2.2.11 (Ubuntu) mod_perl/2.0.4 Perl/v5.10.0 Server
>>
>> And two years later we're at:
>> Apache/2.2.14 (Ubuntu) mod_perl/2.0.4 Perl/v5.10.1 Server
>>
>> Is that really the state of two years of progress in apt-get packages,
>> or did I choose the wrong repository?
>>
>> And so after copying over configs and startups I'm getting this error:
>>
>> Can't call method "auth_name" on an undefined value at
>> /usr/local/share/perl/5.10.1/Apache2/AuthCookieDBI.pm line 284.
>>
>> Which is: my $auth_name = $r->auth_name;
>>
>> So the fact that $r is undefined tells me that whatever is running is
>> NOT running under mod_perl, is this a valid assessment?
>>
>> Because right now I will have to get into a fight with my sys-admin who
>> will say it's not working because I didn't configure something
>> correctly, but my position is if he apt-gets everything and then copies
>> over the config/startup from the old (working) install then everything
>> *should* work so he's probably left out something.
>
> This does sounds like something in the config didn't get copied over. I
> believe your stuff runs as registry/perlrun scripts, so that would be the
> configuration that's missing.
>
> Adam
>
>