Questions tagged [env]

26 questions
1
vote
1 answer

Recommended Practices for Managing httpd.conf for different environments

We have several different environments (developer dekstop, integration, QA, prod) which should have slightly different variants of the same httpd.conf file. As an example, the httpd.conf file configures that httpd should act as a reverse proxy and…
James Kingsbery
  • 309
  • 1
  • 2
  • 8
1
vote
1 answer

Bash-Skript (Cronjob): Programm öffnen hat falsche Sprache

Which ENV must be exported that a bash cronjob script opens the program in the correct language? If I open the bash script so manually in the command-line the program is opened in the correct language. However, if the program is opened via the…
Omexlu
  • 43
  • 1
  • 9
0
votes
1 answer

Prevent logging of environmental variables in sudo

I'm trying to provide a secret value to a script, via an environmental variable, but not have it logged by sudo in auth.log. At the moment I have the file: /etc/secret-key export SECRET_CONFIG_KEY=K1PX7MZ8an8H2mRQR This file is owned by root:root…
Craig Francis
  • 633
  • 1
  • 8
  • 23
0
votes
1 answer

Ellakcy moodle-compose repo: Used the solution but I get 303 redirect loop

I used the docker-moodle solution offered from ellkcy's repository that used their built docker images. But for some reason I get a 303 redirect loop and the browser fails to load the moodle. Over my .env I have setup the following settings # In…
Dimitrios Desyllas
  • 563
  • 2
  • 11
  • 30
0
votes
1 answer

How use setEnv with another Env?

My question is how can I use setEnv with an already defined environment variable. For example: "/etc/apache2/envvars" ... export SSL_ROOT_DIR=/etc/letsencrypt/live export…
UnitedPE
  • 3
  • 4
0
votes
1 answer

Why is /usr/bin/env permission denied to rails server?

I've just set up rails on an apache server running on Ubuntu, and when I try to go to the root page it gives this error: An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion…
0
votes
1 answer

Multiple Sites on one server

I have multiple sites working on one Server (running Ubuntu 12.04.4) and the sites all work fine. The issue I'm having trouble finding any information on is this: Is there a way to control the $ENV variable based on which site is being served? For…
Kirk B
  • 103
  • 2
0
votes
1 answer

Why is cron using a different Ruby than my user and how to fix it?

I have a cron job that is a Ruby script. The problem is that the ruby executable is different than expected. Ruby was installed from source so it should be the new global default. $ ssh root@example.com root@example.com$ ruby -v ruby 2.0.0p247…
Andrew
  • 3,453
  • 9
  • 33
  • 36
0
votes
1 answer

Apache Environment Variables in MOD rewrite

IN my httpd.conf I am setting a variable SetEnv MY_URL_WWW "http://myURLtowhatever.com" And in my .htaccess, i have a rewrite rule, where i want to redirect to my ENV url RewriteRule ^redirect$ %{ENV:MY_URL_WWW} [L,NC,R=301,QSA] This is not…
Roy Rico
  • 612
  • 2
  • 9
  • 20
0
votes
1 answer

Sail up for a cloned laravel project does not work

I have Windows 10, WSL2, and Docker. I've cloned a repository from GitHub, and when I try to sail up, I get this message: /usr/bin/env: ‘sh\r’: No such file or directory. The following is from the laravel website which I believe is the solution to…
r j
  • 1
  • 2
0
votes
1 answer

Apache2.4 SetEnv to value of request header

I want to set the value of env with a request header. SetEnv X_THING %{req:thing} but it's not working as planned; it looks like the value of SetEnv isn't being evaluated.
Konchog
  • 101
  • 2
1
2