Environment variables problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

In httpd.conf I have 'PerlOptions +SetupEnv' but the variables are not seen from the scripts. (The fragment of httpd.conf can be found on the end of the message). In PerlConfigRequire script I have:
_______________
use strict;
use Data::Dumper;

print Dumper (\%ENV);
_______________

And it produces:

_______________
$VAR1 = {
         'MOD_PERL_API_VERSION' => '2',
         'MOD_PERL' => 'mod_perl/2.0.1',
'PATH' => '/home/hartem/alien/bin:/home/hartem/alien/i686-pc-linux-gnu/3.2.3/bin:/home/hartem/alien/api/bin:/home/hartem/alien/globus/bin:/home/hartem/bin:/home/hartem/scripts:/usr/sue/bin:/afs/cern.ch/alice/library/bin:/afs/cern.ch/alice/library/local/bin:/afs/cern.ch/alice/library/pro/bin/tgt_linux:/afs/cern.ch/alice/library/root/new/bin:/afs/cern.ch/alice/library/pro/share:/usr/local/bin:/usr/local/bin/X11:/usr/bin:/bin:/usr/bin/X11:/cern/pro/bin:/usr/kerberos/bin:/usr/X11R6/bin'
       };
_______________

As one can see, only PATH, MOD_PERL and MOD_PERL_API_VARIABLES are present in environment, which is strange, because config file has 'PerlOptions +SetupEnv'. 'PerlPassEnv', however, works fine, but I need to have all the variables.

Thanks for help in advance,
Arsen.


httpd.conf contains:
==================================================================
SSLengine on
SSLSessionCache dbm:/home/hartem/alien/httpd/logs/ssl_gcache_data
SSLCertificateFile     /home/hartem/.alien/globus/usercert.pem
SSLCertificateKeyFile  /home/hartem/.alien/globus/userkey.pem
SSLVerifyClient require
SSLVerifyDepth  10
SSLOptions +StdEnvVars
SSLCACertificatePath /home/hartem/alien/globus/share/certificates/
<Location />
   SSLRequireSSL
   SetHandler perl-script
   PerlHandler AliEn::Service
PerlSetVar dispatch_to "/home/hartem/alien/lib/perl5/site_perl/5.8.8 AliEn::Service::LBSG "
   PerlSetVar options "compress_threshold => 10000"
   PerlOptions +SetupEnv
   Allow from all
   GridSiteGSIProxyLimit 2
</Location>
PerlSwitches -I/home/hartem/alien/lib/perl5 -I/home/hartem/alien/lib/perl5/site_perl
PerlModule Apache2::compat

PerlConfigRequire /home/hartem/alien/httpd/conf/startup.pl
==================================================================

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux