Author |
|
Deb
Joined: 18 Nov 2014 Posts: 3 Location: UK
|
Posted: Wed 19 Nov '14 0:19 Post subject: Apache envvars |
|
|
The default installation of Apache creates envvars with some environment variables for apachectl but I haven't been able to figure out what the following means:
And the following:
Code: | export LANG=C
export LANG |
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 19 Nov '14 14:58 Post subject: |
|
|
The unset HOME deletes the content of $HOME variable which refers to your home directory
The 'LANG' environment variable indicates the language/locale and encoding. The "C" locale is normally the default. |
|
Back to top |
|
Deb
Joined: 18 Nov 2014 Posts: 3 Location: UK
|
Posted: Wed 19 Nov '14 20:32 Post subject: |
|
|
Can you point me to documentation of these variables? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
Deb
Joined: 18 Nov 2014 Posts: 3 Location: UK
|
Posted: Thu 20 Nov '14 22:39 Post subject: |
|
|
I'm running Apache 2.2 under Debian 7 and the default settings are to unset HOME and to set LANG to C and then LANG appears without being set to anything. What do you think is the benefit of this? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Fri 21 Nov '14 18:36 Post subject: |
|
|
This is mainly a forum for apache on windows...
Well I guess that unsetting the HOME is because the server shall run in its own enviroment and not of the user who has started that script.
You better ask some debian guys why. In the orig apachectl from apache.org that is not in it. (https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x/support/apachectl.in) |
|
Back to top |
|