« phpinfo() Not Displayed Correctly | Main | 2008 PHP Quebec Call for Papers »

PHP RPMs for Oracle

Good news everyone. We've just released a set of RPMs for PHP which include OCI8 and the Oracle PDO driver, as well as many other PHP extensions. These are for development testing only, as Oracle doesn't support them. The RPMs are based on PHP 5.2.3.

You can download the PHP RPMs from the oss.oracle.com site.

To install them:

  1. As root, run:

    rpm -ivh php-common-5.2.3-1.i386.rpm 
    php-cli-5.2.3-1.i386.rpm php-5.2.3-1.i386.rpm

  2. To verify the PHP RPMs have been installed, run rpm -qa |grep php. You should see:


    php-common-5.2.3-1
    php-5.2.3-1
    php-cli-5.2.3-1

The php-oci8 package depends on Oracle's free Instant Client Basic package and on PHP's php-pdo package. To install the Oracle components:
  1. Download oracle-instantclient-basic-10.2.0.3-1.i386.rpm and install it with:


    rpm -ivh oracle-instantclient-basic-10.2.0.3-1.i386.rpm
  2. Install PHP's PDO extension with:


    rpm -ivh php-pdo-5.2.3-1.i386.rpm

  3. Install PHP's Oracle OCI8 and PDO_OCI extensions with:


    rpm -ivh php-oci8-5.2.3-1.i386.rpm 

You're done.

Alison

Comments (5)

I know this is a little off topic, but do you have any info on instantclient for OSX Intel machines? I have contacted our Oracle account rep, but haven't heard back yet. Too bad it isn't open source so I could just compile it. Any info would be great!

Thanks!
Mark

Alison Holloway:

A quick search of otn.oracle.com gave me this:

http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/macsoft.html

That should be what you're after.

There is no Instant Client for Intel Mac. Please keep contacting account reps etc so Oracle can accurately gauge the demand.
As I said in http://forums.oracle.com/forums/thread.jspa?threadID=515188&tstart=0
it is NOT a small effort to support a new platform.

Thanks for the info Christopher!

Hi,

Thanks for your information. After a lot try I am able to install oracle-instantclient-devel-10.2.0.4-1.i386.rpm, will it be compatible with php-oci8-5.2.3-1.i386.rpm and where can I find php-oci8 version.

Thanks,

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on July 3, 2007 12:04 PM.

The previous post in this blog was phpinfo() Not Displayed Correctly.

The next post in this blog is 2008 PHP Quebec Call for Papers.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle