Thanks to all for the helpful suggestions.

Gunther Birzniek from the list suggested a solution that I've 
now tried and it works perfectly:


{begin quote}

I assume you are running with Apache:Registry?

You could also save off the $ENV{PATH}...


Go to the line that reads:

     eval { &{$cv}($r, @_) } if $r->seqno;


And before it have something like

$ENV{OLD_PATH} = $ENV{PATH}

and after it

$ENV{PATH} = $ENV{OLD_PATH}


{end quote}


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.


The reason the mod_perl script modifying its path was to appease
the perl taint checking and help ensure a more secure environment.
I could be totally mistaken in doing this and for some strange
reason mod_perl scripts in my install seem to run with taint checking 
on by default.


Thanks again to all those who responded with very 
helpful suggestions,


-Ben




--
   DO NOT LOOK INTO LASER
    WITH REMAINING EYE
(random sig #14)

Reply via email to