Environment Variables

design

#1

Hello, I recently found out that because our cgi scripts are being run by suexec that certain environment variables are not being passed to our cgi scripts. Does anyone know what environment variables ARE being passed to our scripts? And do the PassEnv or SetEnv directives override the suexec restrictions?


#2

According to a quick script I hacked up…

Using PassEnv and SetEnv in my .htaccess file for that direcory had no apparent effect.

In case you want to do your own testing, you can generate a list of environment variables using the following perl script. Just place it in a directory, set it to execute, and load it in a web browser:

[code]#!/usr/bin/perl

use CGI;
use Data::Dumper;

print CGI::header(-type=>‘text/plain’);
print Dumper(%ENV);
[/code]