in reply to mod_perl, PerlSetEnv, and PERL5LIB

I usually use a startup script for mod_perl where I do "use lib". i.e., put something like the following in httpd.conf:
PerlRequire "/var/www/cgi-bin/mod_perl_startup.pl"
Then in mod_perl_startup.pl, I add:
use lib qw(/path_to_your_lib); use Apache::Log(); use Apache::DBI(); # and any other module you want to load

Replies are listed 'Best First'.
Re^2: mod_perl, PerlSetEnv, and PERL5LIB
by geektron (Curate) on Jul 27, 2004 at 19:52 UTC
    well, i got the auth module loading, but now apache is ignoring the ProImagePath directive.

    i've looked at the cookie on a successful login, and the Path is set to /apps (the aliased dir for login.pl), and not to  / (or any of the other variants i've tried.

    grrr ..