Re: Php, Oracle on Mac, with strange behaviour

From: Date: Sun, 15 Mar 2009 21:41:35 +0000
Subject: Re: Php, Oracle on Mac, with strange behaviour
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-46069@lists.php.net to get a copy of this message
    Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the     directory with Oracle Instant Client libraries in/Library/WebServer/Documents/oracle.php on line 25       Oracle Connect Error
<snip>
putenv("LD_LIBRARY_PATH=/opt/oracle/instanceclient");
I'd guess you probably need this in apache's start up script, not in php (where that is on a mac setup I have no idea). You could also try it in your virtual host: http://httpd.apache.org/docs/2.2/mod/mod_env.html#setenv SetEnv LD_LIBRARY_PATH /opt/oracle/instanceclient -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#46069) next »