The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
56 views

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 ...
0
votes
0answers
18 views

How to set header for non-self-referencing URI in Apache?

I have to cache web pages with URL path teacher and student like so: <LocationMatch "^/(teacher|student)/"> Header set Cache-Control "private, max-age=60" </LocationMatch> However, ...
0
votes
1answer
24 views

Multiple Sites on one server [closed]

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 ...
0
votes
1answer
114 views

Alias doesn't work in script with #!/usr/bin/env php

I've some PHP scripts which are starting with #!/usr/bin/env php. The default interpreter is PHP 4.4, but the scripts need PHP 5.3, so I created an alias in ~/.bashrc: alias ...
2
votes
0answers
23 views

Group Policy Preferences - Dynamic Environment Values

Is it possible to configure dynamic values within group policy preferences for environment variables? I am trying to replace our old login scripts which set an env var according to the computer ...
4
votes
1answer
238 views

Using gpg-agent over ssh

I'm having a problem using the gpg-agent over ssh via a single command line. Here is my configuration : Server A : triggering the command via ssh. ssh user@serverB "sudo -E /path/to/script.sh" ...
0
votes
1answer
36 views

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 ...
3
votes
3answers
120 views

Would there be anyway to know the origin account's username that ssh'ed into the server?

I initially git cloned a repo, when I push my work, within the post-receive hook, I would like to retrieve the origin acount's username who did the push. I know $SSH_CONNECTION and $SSH_CLIENT give ...
1
vote
1answer
94 views

Using environment variables to keep track of processes launched by cron

My question: I have an if statement in perl where I attempt to detect via environment variables at the time of launching the perl script whether it was launched via a cron job or via normal execution ...
3
votes
3answers
1k views

Why doesn't sudo -E actually preserve my environment?

I'm trying to sudo some binaries that lies in a custom path. That custom path is removed when I run sudo though, but sudo -E should preserve my path. Why doesn't it work? $ env | egrep ^PATH ...
0
votes
1answer
234 views

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 ...
1
vote
1answer
631 views

ubuntu 10 add path variable for all users all the time

Where can I add to my path that it will be available for all users, all shells, all the time. In this case I want /opt/grails/bin to always be available even when being run as tomcat user from ...
3
votes
3answers
458 views

Differences between linux and Solaris /usr/bin/env

I've a simple script: #!/usr/bin/env perl -w print "Hello World\n" Make this executable, run on Linux, and I get: /usr/bin/env: perl -w: No such file or directory (without the -w, this works ...
3
votes
2answers
1k views

How do you use SetEnv to read variables in Apache?

I want to set an env variable that has the DOC_ROOT info but nothing SetEnv PROJECT_BASE %{ENV:DOC_ROOT} SetEnv LAYOUT_HOME %{ENV:PROJECT_BASE}"/html/app/wordpress/" and then be able to access ...
2
votes
2answers
2k views

Setting Server Variables before Apache Loads

We have CentOS with Apache running on it. Basically, I have a few variables in /etc/environment and they're passed through to our Apache configs using PassEnv. The issue is that because Apache is ...
1
vote
1answer
188 views

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 ...
2
votes
1answer
48 views

What does the - option to env do?

From the man page for env: The historic - option has been deprecated but is still supported in this implementation. What does the "historic - option" do? In particular, why does it change which ...
1
vote
2answers
737 views

GNU watch - how do I make it read my environment (aliases, functions, etc)

This one has been bugging me for a while: I want to use the marvelous GNU watch command to run a few custom aliases and functions that are defined in my .bashrc, but it is never able to run anything ...