Perl Monk, Perl Meditation | |
PerlMonks |
Dynamic @INC under mod_perl2 (Apache2 VirtualHost)by graq (Curate) |
on Mar 28, 2006 at 17:57 UTC ( [id://539761]=perlquestion: print w/replies, xml ) | Need Help?? |
graq has asked for the wisdom of the Perl Monks concerning the following question:
I have some mod_perl2 modules loaded in under Apache 2.0.
In order for me to set up proper development and test environments (and provide some portability to the code base) I would like to be able to set @INC by VirtualHost. The current setup uses <Perl> use lib '/path/to/lib'</Perl> configuration, but this is loaded on Apache configuration and is shared by all VirtualHosts. I have tried adding PerlSwitches -I/path/to/lib inside the VirtualHost (it looked like the perfect solution), but this does not appear to be sufficent for my LoadModule modules. I appreciate that I could run a second Apache demon using the -f switch, but I would prefer to find some other way.
-=( Graq )=-
Back to
Seekers of Perl Wisdom
|
|