httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Brenart (TT)" <Rob.Bren...@tradingtechnologies.com>
Subject RE: [users@httpd] Changing PATH
Date Wed, 05 Jan 2005 17:16:19 GMT
I mean that on the start of the webserver I would like to set an environment
variable which is then passed to CGI scripts and SSI pages. As described
here.

http://httpd.apache.org/docs/mod/mod_env.html#setenv

However, this doesn't work for the PATH variable.

I did not have any PassEnv directives set, but I do not believe they're
necessary here as the PATH variable is already passed on, just not with my
expected values... and also, SetEnv'ing a new variable passes it on just
fine.

But I tried setting a PassEnv directive with no change to the behavior.



-----Original Message-----
From: Axel-Stéphane SMORGRAV [mailto:Axel-Stephane.SMORGRAV@europe.adp.com] 
Sent: Wednesday, January 05, 2005 11:01 AM
To: users@httpd.apache.org
Subject: RE: [users@httpd] Changing PATH

Do you mean that you want to be able to set the path variable dynamically??

Have you specified an apropriate PassEnv directive in you configuration
(/manual/mod/mod_env.html#passenv in the Apache 2 manual pages)

-ascs

-----Message d'origine-----
De : Rob Brenart (TT) [mailto:Rob.Brenart@tradingtechnologies.com] 
Envoyé : mercredi 5 janvier 2005 17:56
À : users@httpd.apache.org
Objet : Changing PATH

Running Debian Sarge
Apache 1.3.33

I need to change the value of the PATH variable sent to my PHP scripts

I enabled mod_env and tried to the SetEnv PATH method, only to learn that
the PATH and TZ variables cannot be set this way.

I'm already running apache as a user on my system rather than as the
www-data user, but it's not inheriting that users path.

I cannot seem to find another method for changing the path variable... any
help would be greatly appreciated!

Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message