this one is confusing the hell outta me. i finally broke down and wrote a  modperl_startup.pl to get away from all the annoying PERL5LIB sections in various host.conf files floating around on this server.

i'm trying to get a subclass of Apache::AuthCookie to work.

the more i look at this, the more confused i am. the error:

Can't locate authenticate.pm in @INC (@INC contains: /home/httpd/proim +ageteam.com/libs .... ) Can't locate object method "authenticate" via package "RemoteAuthentic +ation" (perhaps you forgot to load "RemoteAuthentication"?).
which i would understand, except for the fact that the module in question *is* in @INC.
locate RemoteAuthentication.pm /home/httpd/proimageteam.com/libs/RemoteAuthentication.pm
the directory is the first one listed in @INC. my httpd.conf for this VirtualHost looks OK too ...
Alias /apps /home/httpd/proimageteam.com/modperl_apps <Directory /home/httpd/proimageteam.com/modperl_apps> <Files login.pl> SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI allow from all PerlSendHeader On </Files> </Directory> ## These documents require user to be logged in. <Directory /home/httpd/proimageteam.com/html/testMemberArea> AuthType RemoteAuthentication AuthName ProImage PerlAuthenHandler RemoteAuthentication->authenticate PerlAuthzHandler RemoteAuthentication->authorize require valid-user </Directory> ##this is the action of the login.pl script above. <Location /apps/LOGIN> AuthType RemoteAuthentication AuthName ProImage SetHandler perl-script PerlHandler RemoteAuthentication->login </Location>
so where is this "authenticate.pm" coming from, when it's just a method name?

Edit: i almost feel like i should delete this one, since i solved my own problem.

in my .... confusion, i forgot to  use RemoteAuthentication in the modperl_startup.pl. i didn't remember that i commented out one of the included files.


In reply to mod_perl can't locate module in @INC by geektron

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.