You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Doug MacEachern <do...@covalent.net> on 2000/09/26 19:46:19 UTC

Re: Solution for: Re: $ENV{PATH} set by mod_perl script affects mod_cgi scripts

On Tue, 6 Jun 2000, Ben Cohen wrote:
 
> This was certainly a weird bug ( I think it was a bug ).
> Even setting PerlSetEnv in httpd.conf didn't help.
> The PATH would be properly set until the first time a mod_perl
> script modified its PATH at which point all other 
> scripts including mod_cgi scripts would 'inherit' this
> new PATH.

you should be able to cure this simply by localizing:

local $ENV{PATH} = "/bin:/usr/local/bin";

is that not the case?