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
[SOLVED] Not set LD_LIBRARY_PATH
[SOLVED] Not set LD_LIBRARY_PATH
Last edited by baran on 18. Nov 2014, 07:16, edited 1 time in total.
Re: Not set LD_LIBRARY_PATH
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
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?"
Re: Not set LD_LIBRARY_PATH
Hi,
thnx. I found it. I did set it in apahce config.
All variables are accepted. Only LD_LIBRARY_PATH is overwriten to "/usr/lib/httpd"
Rene
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
Rene