![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Environment variables under mod_perl 2by sgifford (Prior) |
on Jun 03, 2009 at 06:25 UTC ( #767907=perlquestion: print w/replies, xml ) | Need Help?? |
sgifford has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I'm working on porting some code that's been running on mod_perl 1 for a very long time to mod_perl 2. Mostly things have gone smoothly, but I'm having trouble with environment variables. Sometimes my scripts go off and run other scripts, and expect to be able to set things like $ENV{PATH} for the child processes. However, for some reason under mod_perl 2, my environment variables aren't getting passed to child processes! Quite bizarre. Here's an example: The proper output seems pretty obvious, right? And that's what it does when I run it from the command-line. But under mod_perl 2, instead I see:
I'm using Ubuntu 8.04 and its default Perl (5.8.8), Apache (2.2.8), and mod_perl (2.0.3). My Apache configuration looks roughly like this: Any suggestions would be appreciated!
Back to
Seekers of Perl Wisdom
|
|