On Tuesday, March 4, 2003, at 09:44 PM, Kurt wrote:
I want to use environment variables in some of my cgis. I set them up in environment.plist inside the .MacOSX folder, logged out and back in and perl sees them just fine when I run the cgi from the bash shell via %ENV.
But when I call the cgi from Apache, I don't get any of the %ENV values.
Apache runs as a different user, so your environment.plist isn't seen by it.
You can use SetEnv or PerlSetEnv to set environment variables in the httpd.conf. The details are in the Apache docs.
-Ken
