Daniel Brown wrote:
> On Mon, Jul 21, 2008 at 12:22 PM, Mad Unix <[EMAIL PROTECTED]> wrote:
>> How 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 or
> perhaps go directly to the PECL OCI8 page.
>

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.html

    # rpm -i oracle-instantclient-basic-11.1.0.1-1.i386.rpm 
oracle-instantclient-devel-11.1.0.1-1.i386.rpm

If 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.rpm

Configure XE:

    # /etc/init.d/oracle-xe configure


Chris

--
Email: [EMAIL PROTECTED]  Tel: +1 650 506 8630
Twitter:  http://twitter.com/ghrd    Free PHP Book: http://tinyurl.com/f8jad

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to