note 43226 modified in ref.oci8 by sixd

From: Date: Thu, 10 Apr 2008 22:12:35 +0000
Subject: note 43226 modified in ref.oci8 by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-138141@lists.php.net to get a copy of this message
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! --was-- 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! http://php.net/manual/en/ref.oci8.php

« previous php.notes (#138141) next »