logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache envvars
Author
Deb



Joined: 18 Nov 2014
Posts: 3
Location: UK

PostPosted: Wed 19 Nov '14 0:19    Post subject: Apache envvars Reply with quote

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:

Code:
unset HOME

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

PostPosted: Wed 19 Nov '14 14:58    Post subject: Reply with quote

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

PostPosted: Wed 19 Nov '14 20:32    Post subject: Reply with quote

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

PostPosted: Thu 20 Nov '14 11:29    Post subject: Reply with quote

That are standard linux shell variables.

See http://www.linux.org/threads/linux-linux-shell-02-%E2%80%93-environment-variables.6177/
Back to top
Deb



Joined: 18 Nov 2014
Posts: 3
Location: UK

PostPosted: Thu 20 Nov '14 22:39    Post subject: Reply with quote

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

PostPosted: Fri 21 Nov '14 18:36    Post subject: Reply with quote

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


Reply to topic   Topic: Apache envvars View previous topic :: View next topic
Post new topic   Forum Index -> Apache