This content has been marked as final. Show 5 replies
What did you restart? If you meant a web server, then make sure to set the env vars in the script that starts it.
For example, with the default Apache installation, export LD_LIBRARY_PATH & TNS_ADMIN in /etc/sysconfig/httpd
You don't need to set ORACLE_HOME when you use Instant Client.
Instant client doesn't automatically update ld.so.conf so that machines with multiple versions of Oracle don't
By restart I meant the whole server so that the environmental variables are set in .bashrc, etc.
from phpinfo() Apache Environment includes:
PHP variables include:
So it doesn't look like I need to explicitly state them again in /etc/sysconfig/httpd
Why is it looking for liblntsh.so.10.1 instead of the installed 11.1 in /usr/lib/oracle/11.2/client/lib?
So it doesn't look like I need to explicitly state them again in /etc/sysconfig/httpdSet them in /etc/sysconfig/httpd to ensure the correct values are always picked up.
Obviously there is some mix of settings on the machine.
Why is it looking for liblntsh.so.10.1 instead of the installed 11.1 in /usr/lib/oracle/11.2/client/lib?Do you have an Oracle 10 installation on your machine? Was OCI8 linked with it?
Removed all copies oci8.so (found 4) then reinstalled (pecl install oci8) now get a new error. PHP Warning: PHP Startup: oci8: Unable to initialize module\nModule compiled with module API=20060613\nPHP compiled with module API=20090626\nThese options need to match\n in Unknown on line 0
Looks like its a PHP issue now, thanks.