atemon has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
Background :
I host three website on a single machine. say www.mywebsite1.com, www.mywebsite2.com, www.mywebsite3.com. All the three runs on mod_perl2. In the start-up files all the sites I added path to the library containing custom modules for the VirtualServer.
Problem : The problem (for me) is that the path added to @INC for one server (VirtualHost) is available to other also. i.e. I added the path /home/mywebsite1.com/www/library to the first virtual host via its start-up file and /home/mywebsite2.com/www/library to second virtual host. When I try to use some modules with same name as one used with previous servers(VirtualHost), its trying to load from the path added by previous servers (VirtualHost). Is there a way to restrict the scope of library path added, to the current VirtualHost only?
Cheers !
--VC
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Scope of @INC in mod_perl 2
by ikegami (Patriarch) on Nov 04, 2009 at 06:58 UTC | |
by Anonymous Monk on Nov 04, 2009 at 08:38 UTC | |
|
Re: Scope of @INC in mod_perl 2
by WizardOfUz (Friar) on Nov 04, 2009 at 09:45 UTC | |
|
Re: Scope of @INC in mod_perl 2
by CountZero (Bishop) on Nov 04, 2009 at 14:10 UTC | |
by WizardOfUz (Friar) on Nov 04, 2009 at 15:35 UTC | |
by CountZero (Bishop) on Nov 04, 2009 at 17:37 UTC | |
by WizardOfUz (Friar) on Nov 04, 2009 at 17:52 UTC | |
by CountZero (Bishop) on Nov 04, 2009 at 18:55 UTC |