Hi Gordon,

Have a look at 
http://perl.apache.org/docs/2.0/user/config/config.html#C_SetupEnv_

It's always a good idea to turn that option off and use Perl Apache
API instead of CGI.

You will need to do "PerlPassEnv" for each env variable that you set
in your outside Apache environment, for them to be available under
Apache.

For example,

$ setenv Hello "World"
$ httpd -f ~/local.conf

Now if you want to use $ENV{"Hello"} under Apache, you will need to
have following line in your apache configuration file ( local.conf
here ) :

PerlPassEnv Hello

Thanks,
Pratik

On 10/10/05, Gordon Stewart <[EMAIL PROTECTED]> wrote:
>
> Dear List
>
> I am new to mod perI.
>
> I have set up a virtual web server and it rely on enviroment variables.
> When I restart my apache server only 3 enviroment variables are set.  When I
> logon using the apache user over 20 enviroment vars are set. where have my
> enviorment variables gone.
>
> Thanks
>
> Gordon Stewart
>


--
http://www.rails.info - Coming Soon !

Reply via email to