RE: apache config problems

2003-03-07 Thread Dan Muey
 
 
 On 06 Mar 2003 11:11:15 -0600, Rob Benton 
 [EMAIL PROTECTED] wrote:
 
  INSTALLED:
  apache 1.3.27
  perl 5.6.1
  redhat 7.3
  
  
  For some reason perl is mangling the environment variables 
 set in the 
  httpd.conf file:
  -httpd.conf-
  SetEnv 
  
 LD_LIBRARY_PATH=/usr/local/lib:/usr/local/atf/lib:/usr/local/hydra/lib
  :/opt/oracle/lib
  SetEnv JAVA_HOME=/usr/java/j2sdk1.4.0_03
  SetEnv ORACLE_HOME=/opt/oracle
  
  
  Then I use this loop inside a cgi script to test the vars: 
 foreach $k 
  (keys %ENV) {

Try it with out the printf :: print -$k-$ENV{$k}- br\n;

  printf(%s:\t%sbr, $k, $ENV{$k});
  }
  and it produces this output:
  
  LD_LIBRARY_PATH: 
  
 /usr/local/lib:/usr/local/atf/lib:/usr/local/hydra/lib:/opt/oracle/lib
  =
  JAVA_HOME: /usr/java/j2sdk1.4.0_03=
  ORACLE_HOME: /opt/oracle=
  
  
  Why is that '=' getting appended to the end of the variables?
  
 
 A very good question why it is on the end, but it appears 
 that your syntax is not correct in the config file. There 
 should be no '=', ??
 
http://httpd.apache.org/docs/mod/mod_env.html

http://danconia.org


RE: apache config problems

2003-03-06 Thread wiggins


On 06 Mar 2003 11:11:15 -0600, Rob Benton [EMAIL PROTECTED] wrote:

 INSTALLED:
 apache 1.3.27
 perl 5.6.1
 redhat 7.3
 
 
 For some reason perl is mangling the environment variables set in the
 httpd.conf file:
 -httpd.conf-
 SetEnv
 LD_LIBRARY_PATH=/usr/local/lib:/usr/local/atf/lib:/usr/local/hydra/lib:/opt/oracle/lib
 SetEnv JAVA_HOME=/usr/java/j2sdk1.4.0_03
 SetEnv ORACLE_HOME=/opt/oracle
 
 
 Then I use this loop inside a cgi script to test the vars:
 foreach $k (keys %ENV) {
   printf(%s:\t%sbr, $k, $ENV{$k});
 }
 and it produces this output:
 
 LD_LIBRARY_PATH:
 /usr/local/lib:/usr/local/atf/lib:/usr/local/hydra/lib:/opt/oracle/lib=
 JAVA_HOME: /usr/java/j2sdk1.4.0_03=
 ORACLE_HOME: /opt/oracle=
 
 
 Why is that '=' getting appended to the end of the variables?
 

A very good question why it is on the end, but it appears that your syntax is not 
correct in the config file. There should be no '=', ??

http://httpd.apache.org/docs/mod/mod_env.html

http://danconia.org