You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by _spitFIRE <ti...@gmail.com> on 2007/05/25 06:38:03 UTC
apache->request
Hi all,
Before I post my question, I would like to say this - "I'm new to mod_perl
and hence bear with my silly
questions!". I'm using Mac OSX 10.4.8/Apache 1.3 . I want to currently
develop a perl object that I can use for authorization (using AuthCookie). I
tried to deploy the sample code given with AuthCookie-1.3, and I get this
error -
Can't locate object method "request" via package "Apache"
Now, how do I fix this??? Any pointers would be greatly appreciated.
__________________
_ _ _]{5pitph!r3}[_ _ _
“I'm smart enough to know that I'm dumb.”
- Richard P Feynman
--
View this message in context: http://www.nabble.com/apache-%3Erequest-tf3814186.html#a10796993
Sent from the mod_perl - General mailing list archive at Nabble.com.
Re: apache->request
Posted by _spitFIRE <ti...@gmail.com>.
Let me clarify what I'm doing. I copied the docs folder in Apache::AuthCookie
and then dropped it in my 'DocumentRoot'. Then copied the sample module and
put in one of the paths of @INC. Tried it, and it worked like a charm except
that when the secured page was accessed, the perl script was rendered as
plain text; So, I thought I will move it to /cgi-bin and oops! now it throws
that error :(
Perrin Harkins wrote:
>
> On 5/25/07, _spitFIRE <ti...@gmail.com> wrote:
>> I'm now using Apache 2.0.59 / mod_perl 2.0.3 / Apache:AuthCookie 3.10
>>
>> However, I now get the error
>>
>> "Can't locate loadable object for module Apache::Constants"
>
> You don't have to use mod_perl 2 to use the latest Apache-AuthCookie,
> but if you choose to, you will have to use the Apache2::AuthCookie
> module from the distribution. The other one is for mod_perl 1.
>
> - Perrin
>
>
--
_spitFIRE
--
View this message in context: http://www.nabble.com/apache-%3Erequest-tf3814186.html#a10808228
Sent from the mod_perl - General mailing list archive at Nabble.com.
Re: apache->request
Posted by _spitFIRE <ti...@gmail.com>.
hmmm... no luck still!
BTW, even trying Apache::AuthCookie 3.10 on Apache 1.3/ mod_perl 1.29 also
reports the same problem now!
Perrin Harkins wrote:
>
> On 5/25/07, _spitFIRE <ti...@gmail.com> wrote:
>> I'm now using Apache 2.0.59 / mod_perl 2.0.3 / Apache:AuthCookie 3.10
>>
>> However, I now get the error
>>
>> "Can't locate loadable object for module Apache::Constants"
>
> You don't have to use mod_perl 2 to use the latest Apache-AuthCookie,
> but if you choose to, you will have to use the Apache2::AuthCookie
> module from the distribution. The other one is for mod_perl 1.
>
> - Perrin
>
>
--
View this message in context: http://www.nabble.com/apache-%3Erequest-tf3814186.html#a10808225
Sent from the mod_perl - General mailing list archive at Nabble.com.
Re: apache->request
Posted by Perrin Harkins <pe...@elem.com>.
On 5/25/07, _spitFIRE <ti...@gmail.com> wrote:
> I'm now using Apache 2.0.59 / mod_perl 2.0.3 / Apache:AuthCookie 3.10
>
> However, I now get the error
>
> "Can't locate loadable object for module Apache::Constants"
You don't have to use mod_perl 2 to use the latest Apache-AuthCookie,
but if you choose to, you will have to use the Apache2::AuthCookie
module from the distribution. The other one is for mod_perl 1.
- Perrin
Re: apache->request
Posted by _spitFIRE <ti...@gmail.com>.
Perrin Harkins wrote:
>
> This problem you're seeing may be a result of long-ago changes in the
> mod_perl 1 API, or a bug in the old module that you're using.
>
> - Perrin
>
>
Thanks for the tip!
I'm now using Apache 2.0.59 / mod_perl 2.0.3 / Apache:AuthCookie 3.10
However, I now get the error
"Can't locate loadable object for module Apache::Constants"
--
View this message in context: http://www.nabble.com/apache-%3Erequest-tf3814186.html#a10807410
Sent from the mod_perl - General mailing list archive at Nabble.com.
Re: apache->request
Posted by Perrin Harkins <pe...@elem.com>.
On 5/25/07, _spitFIRE <ti...@gmail.com> wrote:
> Sorry! I meant to say
>
> Apache 1.3/ mod_perl 1.29 / apache-authcookie-1.4
I don't actually see Apache-AuthCookie 1.4 on CPAN or even backpan.
It must be pretty old. There is a note in version 2.011 which came
out 7 years ago about how to upgrade from 1.4. I'd suggest you try
something newer.
This problem you're seeing may be a result of long-ago changes in the
mod_perl 1 API, or a bug in the old module that you're using.
- Perrin
Re: apache->request
Posted by _spitFIRE <ti...@gmail.com>.
Perrin Harkins wrote:
>
> Meaning mod_perl 1.30?
>
>> I tried to deploy the sample code given with AuthCookie-1.3
>
> Which module is this? There are many things on CPAN with AuthCookie
> in their names, but none of them are version 1.3.
>
> - Perrin
>
>
Sorry! I meant to say
Apache 1.3/ mod_perl 1.29 / apache-authcookie-1.4
--
View this message in context: http://www.nabble.com/apache-%3Erequest-tf3814186.html#a10797189
Sent from the mod_perl - General mailing list archive at Nabble.com.
Re: apache->request
Posted by Perrin Harkins <pe...@elem.com>.
On 5/25/07, _spitFIRE <ti...@gmail.com> wrote:
> Before I post my question, I would like to say this - "I'm new to mod_perl
> and hence bear with my silly
> questions!"
Welcome aboard, _spit.
> I'm using Mac OSX 10.4.8/Apache 1.3
Meaning mod_perl 1.30?
> I tried to deploy the sample code given with AuthCookie-1.3
Which module is this? There are many things on CPAN with AuthCookie
in their names, but none of them are version 1.3.
- Perrin