Kemin Zhou wrote:
Stas,
Thaks a lot for the help. Maybe you can give me more help. When I added the two lines to my http.conf file


SetEnv LD_LIBRARY_PATH /usr/local/pgsql/lib
PassEnv LD_LIBRARY_PATH

While restarting the server:
Stopping httpd: [ OK ]
Starting httpd: [Sun Oct 17 15:41:42 2004] [warn] PassEnv variable LD_LIBRARY_PATH was undefined


I read the Apache book and could not figure out what is wrong. It could be a hidden trick. It must be
something obvious that I missed.

Why SetEnv and PassEnv? It's either or, not the two together. PassEnv passes env vars from the shell if they are already set. SetEnv explicitly sets them.


So the warning tells you that the shell you start apache from doesn't have
LD_LIBRARY_PATH defined (which means that you probably not using the same environment to run your plain perl tests and modperl tests, e.g. because one is run as root and the other as another user).


So either set it in the shell you running and use PassEnv, e.g.:

LD_LIBRARY_PATH=/usr/local/pgsql/lib ./httpd

or just set it in httpd.conf:

SetEnv LD_LIBRARY_PATH /usr/local/pgsql/lib

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to