Environment variables are configuration options that can be set in a shell or other similar environments. All programs started from within the shell can read them and configure themselves.

learn more… | top users | synonyms

1
vote
0answers
11 views

Using environment variables in Kubernetes deployment spec

I currently use a Kubernetes spec Deployment.yaml for deploying a service. The spec includes a verbatim reference to a specific IP address (marked as <static-ip-address> below): spec: type: ...
-1
votes
1answer
28 views

!Linux standard path information, similar to windows path variables, like %AppData%, %UserProfile%, etc.?

Is there, in linux variables, or some other means to find per/system paths, similar to windows path variables, like %AppData%, %UserProfile%, %AllUsersProfile%, %ProgramFiles%, %SystemRoot%, %...
0
votes
1answer
48 views

How to configure environment variables in an IIS 7 application?

I need to set the environment variable COMPLUS_FORCEENC=1 in an ASP.NET application. This variable must be set at the time the worker process starts to have an effect. Therefore, I did this: Create ...
0
votes
1answer
19 views

Adding /etc/environment makes bash fail

On RHEL 6.7, I've added the file /etc/environment: JAVA_HOME="/opt/jdk1.8.0_91" JRE_HOME="{JAVA_HOME}/jre" M2_HOME="/usr/local/apache-maven" M2="{M2_HOME}/bin" PATH="{JAVA_HOME}/bin:{JRE_HOME}/bin:{...
0
votes
0answers
12 views

OpenSSH won't resolve %temp% environment variable in commands and batch files

I installed OpenSSH on my Windows Server 2012 R2 system. So far everything works except for resolving the %temp% environment variable: In my PuTTy SSH client I can resolve %systemroot% but not %...
0
votes
1answer
114 views

package org.json does not exist

I downloaded the JSON library for Java from Maven Repo and installed the .JAR file at the Java library directory on UBuntu 14.04. I tried compile a simple JAVA snippet for JSON parsing, but the ...
0
votes
1answer
24 views

Danger of setting the environment variable 'PATH' with a '.'? [closed]

I have an upcoming test and looking at past years they always ask a similar question. Basically the security hole that would be created by setting something like: PATH=".:/bin:/usr/bin" I get that ...
0
votes
0answers
41 views

Unable to retrieve HTTP_SESSION

I have set up a login form using Apache2's mod_auth_form. Now I am trying to retrieve the login of the user in a PHP script using the HTTP_SESSION environment variable, as advertised in mod_session's ...
0
votes
0answers
23 views

Render backslashes in environment variables

I am on CentOS 7 with PHP 5.5.34 (cli) I have some environment variables set in /etc/environment and have my apache config set to use /etc/environment as one of it's EnvironmentFile directives in ...
1
vote
2answers
86 views

Security implications of using relative paths in the PATH enivronmental variable?

We had an audit just flag us for having relative paths inside out $PATH env variable. I am uncertain if this is truly a security concern and would like to reach out to everyone to see if this is ...
0
votes
1answer
43 views

How do I view the RDS_ prefixed environment variables in AWS ElasticBeanstalk?

If you set up RDS with ElasticBeanstalk how can you go into the box (via eb ssh) and view the environment variables that are set when you apply RDS to your EB Instance? Amazon automatically sets up ...
0
votes
1answer
107 views

How to find out the correct path for ANT_HOME in Linux?

I'm using Ubuntu 14.04 (on a VirtualBox VM) and installed Apache Ant via aptitude: $ aptitude install ant The binary is stored in /usr/bin/: $ which ant /usr/bin/ant Now I want to set ANT_HOME ...
1
vote
1answer
37 views

robocopy with environment variable will cause 0x10

I tried this on command line and it will work correctly robocopy /mir /copy:DAT /mot:30 "D:\Source File\file" "E:\Target Directory\backup %DATE:/=-% %time::=-%" /xd "D:\Source File\file\excluded" ...
0
votes
1answer
112 views

Tomcat service does not see $JAVA_HOME

I'm trying to setup a Tomcat service with Systemd on CentOS 7. I've installed Oracle Java 1.8u74 to /usr/java/jdk1.8.0_74 and set the environment variable $JAVA_HOME at boot like so: # echo "export ...
0
votes
1answer
61 views

Automatically increase OpenShift SSH timeout

When I SSH into my gear on OpenShift the default SSH timeout is 300 seconds, which I find too short. I can run either of the following commands in the terminal to fix this: export TMOUT=30000 unset ...
1
vote
2answers
23 views

Set Apache specific Environment variables in Windows

I've used Apache in Ubuntu is the past. There is a envvars file contains environment variables used by the Apache Service. I'm unable to find such a file for Windows. There are two approach that I've ...
1
vote
1answer
74 views

Nginx and Gunicorn 'err_conn_refused', but nginx not logging error

I've been playing around with Django Cookie Cutter for local projects, and wanted to put it on my DO Droplet as a semi-production staging environment. The server is set up with Nginx reverse ...
1
vote
1answer
25 views

Switching library paths in python virtualenv dynamically

There are two versions of Python that can be installed on RHEL 6.7, as many obviously know. Yum needs 2.6, and other programs for example Graphite need 2.7 After digging into it, I see that even when ...
2
votes
3answers
56 views

Where to find the environmental variables file in CentOS

Where can I find the envvars configuration file (if there are any) in CentOS? I know in Ubuntu, Apache2, I can find it from /etc/apache2/envvars I've tried the command, export EXAMPLE=value command....
0
votes
0answers
23 views

environment variable 'HOME' value on windows

I have a ruby script running in the context of a scheduled task (windows server 2012r2), running as user "Administrator". Here is the sequence of events which recreates this issue: Create an AWS ...
1
vote
0answers
16 views

Edit apache environment path in OS X 10.10 Server

My phpinfo displays that the Environment Path for Apache is: /usr/bin:/bin:/usr/sbin:/sbin I would like to add: /opt/local/bin/ I'm using OS X 10.10 Server with the Website functionality of the ...
0
votes
0answers
48 views

After deploying django app to Elastic Beanstalk, all environmental variables are lost

Each time I use eb deploy to deploy a new version of my Django app to Elastic Beanstalk, it acts as if it has successfully deployed and then all requests start failing. If I ssh into the actual ...
0
votes
0answers
16 views

Environment variable Name Set in Path Not converted to its set value

I created a system environment variable SD_HOME to set the location of SED application on windows server 2008 R2 Datacenter and referenced the same variable in PATH system variable as ;%SD_HOME%\bin;. ...
1
vote
1answer
50 views

How do refresh environment variable changes from a different user session?

I came from Here. My question is specifically about getting environment variables updates from a different session. If I update the system environment variable in one user session, I found the other ...
0
votes
0answers
74 views

How to modify “Path” environment variable on Azure?

I have an Azure Web Application developed in PHP and I try to add the Imagick library. The issue is that I have to set the location of some dll's in the PATH environment variable, but Azure does not ...
2
votes
1answer
128 views

Python: How can i read the environment variables / user path variables from another user?

As far as i know, the user variables (of the currently logged on user) are stored in HKEY_CURRENT_USER\Environment. User path variables are stored in HKEY_CURRENT_USER\Software\Microsoft\Windows\...
0
votes
2answers
28 views

Node.js executable issue

I have installed node.js from repositories (v0.10.25, Ubuntu 14.04.3, nodejs-legacy package). I need a specific version (v0.10.35) for a project. I installed n (sudo npm install -g n) and ...
3
votes
1answer
485 views

Passing variables to use in the preseed file for a Debian Jessie installation

Is it possible to add a variable via the boot prompt to the Debian installer, so that variable can be used in a preseed file? In particular, I'm trying to solve the following problem: We have a ...
0
votes
1answer
155 views

Kubernetes - Specify env_file

We are using Kubernetes v1.1.0-beta and I am curious if Kubernetes supports env_file, like Docker Compose? On Pod/ReplicationController creation it would read in the file specified by env_file and set ...
0
votes
1answer
20 views

Restrict access dependent on environment variable

Trying to be clever and allow access depending on an environment variable. It doesn't seem to work (no errors, the expression is always false). What I tried: <VirtualHost *:80> ... &...
0
votes
0answers
18 views

setting and working webserver environment variables

currently I'm trying to setup environment variables for Apache in CentOS 5.5 According with CentOS manual and this post they should be placed in /etc/sysconfig/httpd but doing that I get Undefined ...
1
vote
1answer
484 views

Server 2012 Environment Variables not properly resolving

I've got a Server 2012 R2 server with the RDS roles installed. When attempting to add a new app I'm getting told that the server 'isn't online', despite the fact I am on that same server and am able ...
2
votes
1answer
90 views

How to check root environment variable from sudo user?

How I may check root environment variables from sudo user? I tried various keys and combinations of su and sudo, but have no luck. For example, $HISTFILESIZE=2000 for ordinary user and 9999 for root ...
1
vote
1answer
233 views

Apache environment variables for CGI not setting

I am trying to set my environment variables for the Apache webserver as it is not the correct Perl package. I followed the recommendation of one of the answers on Server Fault for updating the httpd ...
0
votes
1answer
22 views

How to edit environment variable in PASE without VI or NANO etc

I'm new to IBMi but am relatively familiar with UNIX like OS's. I don't have VI or NANO in PASE on IBMi, I can't seem to download and install either of them either. I found EDTF here but when I use ...
1
vote
1answer
367 views

Cannot Restart Laravel Application After Updating OpenShift Environment Variables

I started up a new Laravel 5.0 Quick Start at OpenShift. The default laravel home page and auth pages worked just fine. I changed the OpenShift environment variables as follows: > rhc env set ...
-1
votes
2answers
529 views

How to reload environment variables from within a script

I would like to be able to regenerate the value held by the environment variables inside my testing environment, and have the new values be read by PHP-FPM. I have written a script that regenerates ...
0
votes
1answer
739 views

Supervisor settings environment variables and getting a Error: Unexpected end of key/value pairs

Folks, I'm trying to move something into a docker container, which means a shift from running it as a daemon into a stand alone process controlled by supervisord. Now I don't have much experience ...
1
vote
0answers
73 views

AWS service to expose key/value pairs to EC2 instances

Is there a centralized AWS service to expose key/value pairs to EC2 instances easily? I'd prefer a way that either exposes as a https endpoint, or injects them into environment variables without ...
0
votes
1answer
317 views

xrdp changing PATH environment variable

All, I'm using xrdp to connect to a Centos 7 box. I notice that my PATH environment variable is different depending on whether I RDP in or SSH and I can't for the life of me figure out where that's ...
1
vote
0answers
97 views

Environment variables for PHP applications

A PHP application requires me to set several environment variables with things like database credentials, SMTP server, etc. Examples of variables include: FOO_DATABASE_URL=mysql://user:pass@host:...
4
votes
2answers
81 views

Use “Client Site Name” in Group Policy Preferences

In Active Directory, you can map IP addresses to Client Sites. ...and then you can map Group Policy objects to sites. Which is great and all, but I have a client that is growing rapidly, and ...
1
vote
1answer
523 views

php-fpm and Nginx dynamic environment variable

FPM configration stats that you can retrieve variables from your current environment. However, on ubuntu using Nginx and PHP-FPM, I can not find a way to retrieve the variable value from the ...
0
votes
0answers
340 views

Trouble figuring out a fail2ban log error message: “iptables -n -L INPUT | grep -q 'fail2ban-SSH[ \t]' returned 100”

Here is my jail.local rule for ssh: [ssh-iptables] enabled = true filter = sshd action = iptables[name=SSH, port=ssh, protocol=tcp] logpath = /var/log/messages maxretry = 5 Here is what my ...
3
votes
1answer
277 views

How configure environment variable with AcceptEnv

In /etc/ssh/sshd_config, there is an option called AcceptEnv that allows the ssh client to send environment variables. I need to be able to send a large number of environment variables, how can i do ...
0
votes
1answer
346 views

How to override default `solr.home` in XML files under `Catalina/localhost`?

I'm trying to configure two instances of Solr on the same host and I'd like to override solr.home for each instance. I've created two files under Catalina/localhost/ as suggested in Solr Tomcat wiki: ...
1
vote
1answer
1k views

environment variable clientname scope on terminal server

I have a script that needs the CLIENTNAME environment variable, it runs on a terminal server. I have a batch file for testing that contains: set CLIENTNAME; pause If I RDP as an admin: If I open a ...
5
votes
2answers
228 views

apache: Send request URI within HTTP header for static files

To fulfil the requirements of the PubSubHubbub 0.4 spec, I have to send a rel=self header for each file. I'm now trying to do that with Apache's mod_headers and environment variables: Header append ...
1
vote
1answer
114 views

Can you remap/copy/alias environment variables to new ones in AWS elastic beanstalk?

Right now my database variables are defined as RDS_*, however I'd like to remap them to my app's conventions. This would help in avoiding writing AWS-specific detections inside of my project, which ...
1
vote
2answers
2k views

Using HaProxy environmental variables in haproxy.cfg not working

Trying to figure out why environmental variables in haproxy.cfg aren't working in HA-Proxy version 1.5.2 on the command line, using Printenv I get a list of environmental variables like ...