stas        2004/10/19 17:02:55

  Modified:    src/docs/1.0/guide config.pod
  Log:
  One thing to be aware of is that when you start Apache under a shell
  different than the one you are logged in from, the environment
  variables could be totally different
  
  Revision  Changes    Path
  1.21      +16 -0     modperl-docs/src/docs/1.0/guide/config.pod
  
  Index: config.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/1.0/guide/config.pod,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -u -r1.20 -r1.21
  --- config.pod        23 Jul 2004 07:11:39 -0000      1.20
  +++ config.pod        20 Oct 2004 00:02:54 -0000      1.21
  @@ -1158,6 +1158,19 @@
   
     PerlPassEnv ORACLE_BASE ORACLE_HOME
   
  +One thing to be aware of is that when you start Apache under a shell
  +different than the one you are logged in from, the environment
  +variables could be totally different, so don't be surprised if you get
  +a different value when using C<Passenv>/C<PerlPassEnv> or none at
  +all. Check the environment Apache is started from. Often it's started
  +from a special account like I<apache>, or I<nobody>, and can be
  +anything else. Check the value of C<User> variable in I<httpd.conf> to
  +find out the right answer. Once you figure that out, make sure that
  +the shell Apache starts from has the desired environment variables
  +right. And may be it's a better idea not to rely on the shell
  +variables, but instead set those explicitly using
  +C<Setenv>/C<PerlSetEnv>.
  +
   Regarding the setting of C<PerlPassEnv PERL5LIB> in I<httpd.conf>: if
   you turn on taint checks (C<PerlTaintCheck On>), C<$ENV{PERL5LIB}>
   will be ignored (unset).  See the 'L<Switches -w,
  @@ -1169,6 +1182,9 @@
   possible, so those variables are available before then, e.g. in
   C<PerlAuthenHandler> for C<$ENV{ORACLE_HOME}> (or another environment
   variable that you need in these early request processing stages).
  +
  +
  +
   
   
   =head2 PerlSetVar and PerlAddVar
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to