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@xxxxxxx || phone:+1-650-933-7707 -----Original Message----- From: Nick Kew [mailto:nick@xxxxxxxxxxxx] Sent: Friday, February 16, 2007 7:24 AM To: users@xxxxxxxxxxxxxxxx Subject: Re: OCI & Apache Problem On Fri, 16 Feb 2007 16:16:05 +0100 Dominik Helle <dominikhelle@xxxxxx> 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx