httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Lavi" <ml...@sgi.com>
Subject RE: [users@httpd] OCI & Apache Problem
Date Fri, 16 Feb 2007 18:48:16 GMT
We use Oracle Instant Client with PHP OCI8 in Apache 2.0.59.
(On Novell SuSE Linux 9.x, on a SGI Altix 350 server (ia64 platform))

I modified $APACHESERVER_ROOT/bin/envvars to add the lines below. Note
that I *do not* actually use $APACHESERVER_ROOT and $VERSION variables,
I'm abstracting my work to give you an example to adapt:

LD_LIBRARY_PATH="$APACHESERVER_ROOT/lib:/path_to/instantclient_$VERSION:
$LD_LIBRARY_PATH"
TNS_ADMIN="/path_to/directory_containing_tnsnames.ora"
export LD_LIBRARY_PATH TNS_ADMIN

Cheers,

--Mark 
Mark Lavi, Enterprise Web Management Team @ SGI
mailto:mlavi@sgi.com || phone:+1-650-933-7707
-----Original Message-----
From: Nick Kew [mailto:nick@webthing.com] 
Sent: Friday, February 16, 2007 7:24 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] OCI & Apache Problem

On Fri, 16 Feb 2007 16:16:05 +0100
Dominik Helle <dominikhelle@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


---------------------------------------------------------------------
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


Mime
View raw message