Posted by Andy Hassall on 01/23/06 21:48
On Fri, 20 Jan 2006 23:26:01 +0100, YeCkeL <yeck42o@kc.rr.com> wrote:
>Warning: oci_new_connect() [function.oci-new-connect]: OCIEnvNlsCreate()
>failed. There is something wrong with your system - please check that
>ORACLE_HOME is set and points to the right directory in
>/wwwroot/htdocs/test.php on line 8
>
>I am having this dump on my recent suse 10/oracle 10.2/apache
>2.2.0/php5.1.2. Any ideas i pritty much used a uber basic.
>
>apache cfg line
>$ ./configure --prefix=/wwwroot --enable-so
>
>php cfg line
>'./configure' '--prefix=/wwwroot/php' '--with-apxs2=/wwwroot/bin/apxs'
>'--with-config-file-path=/wwwroot/php'
>'--with-oci8=/opt/oracle/product/10gR2' '--with-curl=/usr/local/lib'
>'--with-mcrypt' '--with-xmlrpc'
>
>Any one see were i fuxed up.
Just to rule out the easy solution - what's your permissions on the Oracle
home? I've noticed that a fresh install of 10g locks down the permissions
fairly tightly, so your typical Apache user won't be able to load the libraries
- resulting in this (not very descriptive) error.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
[Back to original message]
|