Gentoo Archives: gentoo-server

From: Brian Kroth <bpkroth@××××.edu>
To: gentoo-server@l.g.o
Subject: [gentoo-server] Apache 2.2 Environment
Date: Fri, 14 Sep 2007 19:00:28
Message-Id: 46EAD7DD.4060007@wisc.edu
1 I just started testing the Apache 2.2.6 ebuild on some of my servers and
2 noticed that the environment variables contain a lot of extra stuff
3 (details below). Is there some way to get rid of this like it was before?
4
5 Thanks,
6 Brian
7
8 My env_whitelist just has two lines: ORACLE_HOME, TNS_ADMIN, to allow
9 PHP to connect to Oracle DB's.
10
11 Example data taken from the end of two phpinfo()'s:
12
13 apache-2.2.6:
14
15 _ENV["TERM"] Eterm
16 _ENV["SHELL"] /bin/bash
17 _ENV["DEFAULTLEVEL"] default
18 _ENV["USER"] root
19 _ENV["TNS_ADMIN"] /usr/local/lib/oracle/network/admin
20 _ENV["PATH"]
21 /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.6:/usr/i386-pc-linux-gnu/gcc-bin/3.4.4
22 _ENV["PWD"] /etc/init.d
23 _ENV["BOOTLEVEL"] boot
24 _ENV["SVCNAME"] apache2
25 _ENV["CONSOLETYPE"] pty
26 _ENV["SHLVL"] 1
27 _ENV["HOME"] /root
28 _ENV["SOFTLEVEL"] default
29 _ENV["ORACLE_HOME"] /usr/lib/oracle/10.2.0.3/client
30 _ENV["_"] /sbin/start-stop-daemon
31
32
33 apache-2.0.58-r2:
34
35 _ENV["PATH"]
36 /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/home/bpkroth/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.6:/usr/i386-pc-linux-gnu/gcc-bin/3.4.4:/usr/sbin:/sbin:/usr/local/sbin
37 _ENV["ORACLE_HOME"] /usr/lib/oracle/10.2.0.3/client
38 _ENV["TNS_ADMIN"] no value

Attachments

File name MIME type
smime.p7s application/x-pkcs7-signature