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
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
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
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
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