You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Dominik Helle <do...@gmx.de> on 2007/02/16 16:16:05 UTC

[users@httpd] OCI & Apache Problem

Hi,

I've a problem with php-oci and I hope anybody can help me. I want to 
connect with ocilogon to an Oracle Database. If i call my php-Script in 
the browser, this error message turn up:

Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There 
is something wrong with your system - please check that ORACLE_HOME is 
set and points to the right directory in...

That is very funny, because if i activate the file on the command line - 
the connect is possible and no error message turns up.

FYI: My System:  Ubunutu 6, Apache 2 and php 5-with-oci & Oracle 
Database 10g (10.1.0.2).

Env. Variablen are set in the Apache:

SetEnv ORACLE_HOME /xxx
SetEnv TNS_ADMIN /xxx
SetEnv LD_LIBRARY_PATH /xxx
SetEnv ORACLE_SID orcl10g
SetEnv NLS_LANG GERMAN_GERMANY.WE8ISO8859P1

Thank you for helping.

Dominik

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] OCI & Apache Problem

Posted by Nick Kew <ni...@webthing.com>.
On Fri, 16 Feb 2007 16:16:05 +0100
Dominik Helle <do...@gmx.de> wrote:

> Env. Variablen are set in the Apache:
> 
> SetEnv ORACLE_HOME /xxx

Setenv applies per-request.  So if it's trying to
connect at server startup, it doesn't get that.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org