[mp2] [question] $ENV{PATH} changes not taking effect?

2008-01-17 Thread B Wooster
I have searched through all the web docs and Usenet, but not found anything that suggests anything special has to be done in mod_perl scripts that need to set $ENV{PATH} My specific example is that I need to add /usr/local/bin to PATH, but I''ve been unable to find a way to do this, looks like mod

Re: [mp2] [question] $ENV{PATH} changes not taking effect?

2008-01-17 Thread B Wooster
Under modperl, get zero bytes output, HTTP response code is 200, though. Apache error_log shows: [Thu Jan 17 12:47:15 2008] -e: Can't exec "basename": No such file or directory at /var/www/perl/script.pl line 12. So, under modperl, changes to $ENV{PATH} are not accepted (like perl-script), but th

[mp2] [question] How to change $ENV{PATH} for a specific script?

2008-01-17 Thread B Wooster
I have searched through all the web docs and Usenet, but not found anything that suggests anything special has to be done in mod_perl scripts that need to set $ENV{PATH} My specific example is that I need to add /usr/local/bin to PATH, but I''ve been unable to find a way to do this, looks like mod

Re: [mp2] [question] $ENV{PATH} changes not taking effect?

2008-01-21 Thread B Wooster
On Jan 17, 2008 4:14 PM, Bart Schaefer <[EMAIL PROTECTED]> wrote: > There's a thread from December that would seem to be related. From that > thread: > > -- Forwarded message -- > From: Michael Schout <[EMAIL PROTECTED]> > Date: Dec 28, 2007 9:12 PM > Subject: Re: mod_perl, ENV{'T

[mp2] [bug?] %ENV changes not propagated to qx() and to C-library calls.

2008-01-30 Thread B Wooster
Looks like mod_perl scripts execute the line that changes $ENV{PATH}, but when a qx() back-tick command is executed, that command is executed under the value of the original path. The docs seem to suggest that that changes to %ENV should work fine: http://perl.apache.org/docs/2.0/user/coding/cod