Re: OCI
| From: | Christopher Jones | Date: | Tue, 22 Jul 2008 22:55:51 +0000 |
| Subject: | Re: OCI | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-45153@lists.php.net to get a copy of this message | ||
Daniel Brown wrote:
On Mon, Jul 21, 2008 at 12:22 PM, Mad Unix <madunix@gmail.com> wrote:You'll need to download and install Oracle Instant client 'basic' and 'devel' RPMs from http://www.oracle.com/technology/software/tech/oci/instantclient/index.htmlHow could I build the OCI8 extension module for php5 under CentOS5? I have installe PHP/APACHE/MYSQL through yum install ...OCI8 is a PECL extension.'pecl install oci8'If you need more help with that, you can either check Google orperhaps go directly to the PECL OCI8 page.
# rpm -i oracle-instantclient-basic-11.1.0.1-1.i386.rpm oracle-instantclient-devel-11.1.0.1-1.i386.rpmIf pecl isn't available or fails, follow these steps. Download PHP's oci8 1.3.3 extension from PECL http://pecl.php.net/package/oci8 Build it:
$ tar -zxf oci8-1.3.3.tgz
$ cd oci8-1.3.3
$ phpize
$ ./configure --with-oci8=shared,instantclient
$ make
Install it as root:
# cd oci8-1.3.3
# make install
Edit /etc/php.ini and add this line:
extension=oci8.so
If you don't have a DB, download and install Oracle XE database from
http://www.oracle.com/technology/software/products/database/xe/index.html
# rpm -i oracle-xe-univ-10.2.0.1-1.0.i386.rpmConfigure XE:
# /etc/init.d/oracle-xe configureChris -- Email: christopher.jones@oracle.com Tel: +1 650 506 8630
Twitter: http://twitter.com/ghrd Free PHP Book: http://tinyurl.com/f8jad