monkfan has asked for the wisdom of the Perl Monks concerning the following question:
It can recognize the path as set in .htaccess below:#!/usr/bin/perl use CGI qw/:standard :html3/; use CGI::Carp qw( fatalsToBrowser ); $CGI::POST_MAX=1024 * 100; # max 100K posts1 BEGIN { if ( $ENV{PERL5LIB} and $ENV{PERL5LIB} =~ /^(.*)$/ ) { # Blindly untaint. Taintchecking is to protect # from Web data; # the environment is under our control. eval "use lib '$_';" foreach ( reverse split( /:/, $1 ) ); } } use Acme::Spork; use Bio::Tools::GuessSeqFormat; print "Content-type: text/html\n\n"; print "Hello World !! It works.\n";
Then I upgraded from Apache 1.3 to 2.2 on the same Linux box. But now with Apache 2.2, it can't locate the location of those modules as set in the identical htaccess.SetEnv PERL5LIB /home/monkfan/lib/perl5/site_perl/5.8.5/i386-linux-th +read-multi:/home/monkfan/lib/perl5/site_perl/5.8.5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SetEnv PERL5LIB in htaccess for Apache 2.2 versus 1.3
by graq (Curate) on Jul 03, 2007 at 07:53 UTC | |
by monkfan (Curate) on Jul 03, 2007 at 09:04 UTC | |
by scorpio17 (Canon) on Jul 03, 2007 at 13:22 UTC | |
by monkfan (Curate) on Jul 04, 2007 at 10:32 UTC | |
|
Re: SetEnv PERL5LIB in htaccess for Apache 2.2 versus 1.3
by Anonymous Monk on Jul 03, 2007 at 05:50 UTC |