Installing PHP with Oracle support

Oracle 10g Instant Client (free download available) is
the easiest way for PHP to connect to a remote Oracle database, requiring
installation of only three libraries.

The Instant Client libraries used by PHP
access Oracle’s current API, called OCI8. (This C interface takes its
name from being first introduced in Oracle8.)
PHP Oracle 8
can call Oracle 8.1.7, 9.x, or 10.x directly, or optional
abstraction classes like PEAR MDB2 and ADOdb can be used for

Download the instantclient-basic and instantclient-devel packages from the download page:



Install the RPMs and use the following to compile and install PHP

./configure –with-apxs2=/usr/local/apache/bin/apxs –with-mysql –with-zlib –with-gd –prefix=/usr/local/php5 –with-gd –with-curl –enable-sockets –with-mysqli –with-jpeg –with-zlib –with-png –with-gd –with-curl=/usr/local/curl7  –with-oci8=instantclient,/usr/lib/oracle/

make install

Leave a Reply

Your email address will not be published. Required fields are marked *