[lug] Apache clobbering LD_LIBRARY_PATH

Peter Hutnick peter-lists at hutnick.com
Tue Apr 16 13:16:53 MDT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 16 April 2002 12:46 pm, Matt Clauson wrote:
> Ok, interesting problem for y'all....
>
> Running Apache, Redhat 6.2ee, without suexec...  I have a compiled C CGI
> that calls a shell script.  The script sources another script, which sets
> LD_LIBRARY_PATH in the environment...  However, when it tries to execute
> another program two lines later, LD_LIBRARY_PATH appears to be magically
> unset...  Any ideas?

What happens if you echo the LD_LIBRARY_PATH on the very next line after 
setting it?

What are the two intervening lines?  (One of them isn't a shell, is it? :-P )

- -Peter

- -- 
/"\ ASCII Ribbon campaign against HTML e-mail
\ /
 X   Get my PGP key at http://hutnick.com/pgp
/ \  6128 5651 6F23 EC17 6EBD  737D 960A 20E6 76CA 8A59
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8vHillgog5nbKilkRAjcnAKCcHgxyZAUMQ2WA0ZDCNSQNSroP2ACgjWmV
j7uGJ2m+DUukv9Y/QaKHn/E=
=vJf3
-----END PGP SIGNATURE-----




More information about the LUG mailing list