note 62548 added to ref.oci8

From: Date: Fri, 03 Mar 2006 01:00:16 +0000
Subject: note 62548 added to ref.oci8
Groups: php.notes 
Request: Send a blank email to php-notes+get-104741@lists.php.net to get a copy of this message
Here are some tips on getting the instant client to work with php: I am using Fedora Core 3 and php-5.1.2 on x86. Install: oracle-instantclient-basic-10.xxxx.i386.rpm oracle-instantclient-devel-10.xxxx.i386.rpm Configuring php: ./configure --with-oci8=instantclient,/usr/lib/oracle/10.xxx/client/lib/ This path will change if you unzip it isntead of using the rpms. Make sure it points to where libclntsh.so is installed. Configuring apache: The following lines need to be in your .../apache/bin/envvars file: LD_LIBRARY_PATH="/usr/lib/oracle/10.xxx/client/lib/: /opt/apache2/lib:$LD_LIBRARY_PATH" TNS_ADMIN="/usr/lib/oracle/10.1.0.4/client/lib/" LANG=en_US export LD_LIBRARY_PATH LANG TNS_ADMIN You will need to modify the paths to the oracle instantclient libs and to apache. In addition, the language will need to be modified if not US English. TNS Names and Oracle: Put the tnsnames.ora and sqlnet.ora files into the same directory as libclntsh.so. Restart apache and you should be able to connect. ---- Server IP: 64.71.164.2 Probable Submitter: 129.46.91.140 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/ref.oci8.php Edit -- http://master.php.net/note/edit/62548 Del: integrated -- http://master.php.net/note/delete/62548/integrated Del: useless -- http://master.php.net/note/delete/62548/useless Del: bad code -- http://master.php.net/note/delete/62548/bad+code Del: spam -- http://master.php.net/note/delete/62548/spam Del: non-english -- http://master.php.net/note/delete/62548/non-english Del: in docs -- http://master.php.net/note/delete/62548/in+docs Del: other reasons-- http://master.php.net/note/delete/62548 Reject -- http://master.php.net/note/reject/62548 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104741) next »