note 43226 deleted from oci8.setup by sixd

From: Date: Fri, 26 Jun 2009 18:25:27 +0000
Subject: note 43226 deleted from oci8.setup by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157566@lists.php.net to get a copy of this message
Note Submitter: beckman at purplecow dot com ---- For those of you running Oracle on Linux, and running a remote box also on Linux, here's an easy way to get OCI8 working without having to install the whole Oracle DB just to get your client working. [PS -- For the life of me, installing client libraries for Oracle really shouldn't be this hard, but it really truly is.] Step 1. Copy the following directories from your ORACLE_HOME directory where Oracle is installed (the database server) to your remote client server/machine: lib, network, ocommon, plsql, rdbms, oracore These contain all of the files/folders/libraries you'll need to compile OCI8 into PHP. I put this in /home/beckman/oracle and set ORACLE_HOME as that dir. Step 2. Compile PHP with --with-oci8=/home/beckman/oracle (obviously using your directory, not mine). Install, (re)start apache. Step 3. Remove plsql and rdbms directories from ORACLE_HOME on your remote server, leaving you with lib, network, ocommon and oracore. Step 4. Read: http://otn.oracle.com/tech/opensource/php/php_troubleshooting_faq.html NOTE: This will only help you if you (a) have Oracle successfully running on Linux (was RH Enterprise 3 for me) and your client box is running the same OS. I'm not sure it will work on earlier versions, but it may. Your results should be posted here methinks!

« previous php.notes (#157566) next »