Page 1 of 1

[SOLVED] Not set LD_LIBRARY_PATH

Posted: 14. Nov 2014, 08:27
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

Re: Not set LD_LIBRARY_PATH

Posted: 14. Nov 2014, 11:17
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

Re: Not set LD_LIBRARY_PATH

Posted: 14. Nov 2014, 11:31
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