Hi all.

There is a mod_perl problem that is causing me great suffering.

The problem is that when a mod_perl script modifies the PATH 
environment variable, this change seems to become global and
affects even plain old mod_cgi scripts.

Summary:

 * Changes to $ENV{PATH} by a mod_perl script seem to become
   global to all scripts even mod_cgi scripts.
 * This only seems to happen with $ENV{PATH}
 * mod_cgi scripts do not affect each other. The old mod_cgi
   scripts run merrily along until a mod_perl script modifies
   $ENV{PATH}.

 * Using: mod_perl-1.24, Apache_1.3.12, perl 5.005_02

I know that the old CGI scripts probably shoudn't rely on PATH
but they do and there are too many to fix right away.

For now, the only solution seems to be to run a seperate 
plain old Apache that runs the old CGI scripts and only use
the mod_perl Apache for the mod-perl scripts.

This may indeed be best to do anyways due to the memory consumption
of mod_perl Apache but I'm still concerned with mod_perl scripts
munging each other's PATH environment variables.

I'm aware that there was an old mod_perl corrupted PATH environment
variable problem in earlier versions mod_perl but this seems to be
different.

I hope I'm just being retarded and this is a simple thing that I'm
overlooking.

Thanks for any help.


-Ben

Reply via email to