![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Getting system enviornmentals when running CGIby dsheroh (Monsignor) |
on Sep 21, 2015 at 07:23 UTC ( [id://1142605]=note: print w/replies, xml ) | Need Help?? |
As already mentioned, .bashrc has no effect on code running under apache because apache is not bash and doesn't read .bashrc.
Instead, to set an environment variable for use in apache, you need to use the SetEnv command in your apache config file or .htaccess:
In Section
Seekers of Perl Wisdom
|
|