Skip to content

Oracle with PHP 5.6 or PHP 7 on RHEL 6 or CentOS 7

Ere Maijala edited this page Nov 11, 2020 · 4 revisions

General

Follow instructions at http://vufind.org/wiki/installing_the_php_oci_driver_for_oracle, but:

  • Install the InstantClient from RPMs
  • Don't create the symbolic links
  • See below for oci8

oci8

Easiest way to install oci8 is to use Remi's packages. Then you only need the light version of Instant Client RPM and e.g. php-pecl-oci8-2.2.0-1.el7.remi.7.3.x86_64.

Manual install:

  • For PHP 5.6: pecl install oci8-2.0.11
  • For PHP 7: pecl install oci8

A sample oci8 configure path: instantclient,/usr/lib/oracle/12.1/client64/lib

Clone this wiki locally