[SOLVED] Not set LD_LIBRARY_PATH

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
baran
Posts: 74
Joined: 8. Feb 2010, 17:41

[SOLVED] Not set LD_LIBRARY_PATH

Post by baran »

Hi,

I installed Oracle Instant Client 12.1 (32bit) and PHP OCI8 on SalixOS 14.1 XFCE 32bit. ORACLE_HOME and other variables are set. Only LD_LIBRARY_PATH in apache variables has other (some default) value :-(

I did set it in "/etc/profile" and in "/etc/ld.so.conf". All not works :-(

Well connection to the oracle server works in php script running like command line. But not from apache (web browser) like web app. Can you write me, please, where to set it?

Final LD_LIBRARY_PATH must contains string "/usr/lib/oracle/12.1/client/lib".

http://linux.remontsw.eu/salixos/oracle_apache.png

Thank you.

Rene
Last edited by baran on 18. Nov 2014, 07:16, edited 1 time in total.
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Not set LD_LIBRARY_PATH

Post by laprjns »

Google first page of hits off a search of "LD_LIBRARY_PATH in apache variables",

https://www.google.com/search?q=LD_LIBR ... channel=sb
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
baran
Posts: 74
Joined: 8. Feb 2010, 17:41

Re: Not set LD_LIBRARY_PATH

Post by baran »

Hi,

thnx. I found it. I did set it in apahce config.

Code: Select all

SetEnv ORACLE_HOME  /usr/lib/oracle/12.1/client
SetEnv TNS_ADMIN /etc/oracle
SetEnv SQLPATH /usr/lib/oracle/12.1/client
SetEnv LD_LIBRARY_PATH /usr/lib/oracle/12.1/client/lib
All variables are accepted. Only LD_LIBRARY_PATH is overwriten to "/usr/lib/httpd" :-(


Rene
Post Reply