jaybaker wrote: > "PerlSetEnv or PerlPassEnv is probably what you are looking for" > > Tried both of those, neither seemed to help. > The problem is, the environment variables ARE set (according to perl's %ENV > variable) - but somehow the DBI module can't find them.
Sorry, should have read your post a second time. You have been hit by a documented gotcha http://perl.apache.org/docs/2.0/user/troubleshooting/troubleshooting.html#C_Libraries_Don_t_See_C__ENV__Entries_Set_by_Perl_Code In a nutshell, in mod_perl-2.x, the _actual_ low-level C environ[] is detached from Perl's %ENV for thread-safety reasons. So changes to %ENV are seen just fine as long as it remains in Perl-land. As soon as it enters the C-level of your informix libraries, it queries the _actual_ environment and doesn't see your modifications. The simplest solution is to use Env::C::setenv() in a startup.pl somewhere. Cheers and hope this helps. ------------------------------------------------------------------------ Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5 http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
signature.asc
Description: OpenPGP digital signature