[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: Apache::Reload and @INC
From: Stas Bekman <stas () stason ! org>
Date: 2002-11-28 15:48:28
[Download RAW message or body]
Igor Vylusko wrote:
>>>in doc
>>>http://perl.apache.org/docs/2.0/api/mod_perl-2.0/Apache/Reload.html
>>>declared that when using Apache::Reload I may define additional lib
>>>in httpd.conf: PerlSetEnv PERL5LIB /home/httpd/perl/extra
>>>But when I enable PerlInitHandler Apache::Reload in config all libs defined in
>>>PERL5LIB are gone away from @INC.
>>>I have Apache 1.3.27, mod_perl 1.27, Apache::Reload 0.07, perl 5.8.0
>>>on RH7.2 and try PerlSetEnv PERL5LIB in main config section as well as
>>>in VirtualHost sections.
>>>I have bulk of VirtualHosts and would like make @INC different for each
>>>one(i.e. not use lib ... in startup.pl).
>>
>
> SB> It's not easy with mod_perl 1.0. The manpage is talking about changing
> SB> @INC globally for the whole server. I usually do that with 'use lib' in
> SB> startup.pl.
>
> I define PerlSetEnv PERL5LIB globaly for the whole server but PERL5LIB
> was stripped out from @INC anyway on enabling PerlInitHandler Apache::Reload
> in _any_ vhost.
> I am using PerlSetEnv PERL5LIB per vhost basis and it works fine for me
> without Apache::Reload.
I can't reproduce what you see with Apache::Reload and I don't see
anything in the code that mangles @INC.
Though what I do see, is that if you define PERL5LIB outside a
VirtualHost, it overrides any PERL5LIB defined inside all VirtualHosts,
no matter if you use Apache::Reload or not. I don't remember if that's
how it should be or whether it's a bug. Those who use vhosts can
probably help rectify the issue here.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic