in reply to Re^2: SetEnv PERL5LIB in htaccess for Apache 2.2 versus 1.3
in thread SetEnv PERL5LIB in htaccess for Apache 2.2 versus 1.3
Somewhere in you apache config file, add something like this (the exact path can vary, of course):
PerlRequire /var/www/perl/startup.pl
Then create startup.pl so that it looks like this:
use lib qw(/path/to/my/modules); use MY::MODULE; 1;
The use lib line adds directories to the search path. If you actually put use MY::MODULE in the startup file, these modules will be preloaded when apache starts up.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: SetEnv PERL5LIB in htaccess for Apache 2.2 versus 1.3
by monkfan (Curate) on Jul 04, 2007 at 10:32 UTC |