02-03-05 07:47 AM
Hello NG,
I have an Apache web server 2.0.46 running on my RedHat Enterprise
Linux 3 WS running. I want to execute an CGI application written in
c++. This application needs a correct set environment variable
(LD_LIBRARY_PATH) because it creates a Java virtual machine and
therefore needs some Java librarys from the path
/usr/java/j2re1.4.2_06/lib/i386. In order to get it work I added a
SetEnv command to the httpd.conf:
SetEnv LD_LIBRARY_PATH /usr/java/j2re1.4.2_06/lib/i386
My application runs fine and I can see the environment variable.
If my CGI application itself now calls another application via system
oder execv command this second app doesn't have the environment
variable set. Using getenv I can't see the variable ...
Does the web server prevent the correct environment variables passing
to the second app?
Regards
Mario Freimann
[ Post a follow-up to this message ]
|