GetPageSpeed Extras

php-oci8

How to install php-oci8 in CentOS/RHEL 7 (x86_64)

A module for PHP applications that use OCI8 databases

License: PHP Vendor: GetPageSpeed LLC http://www.php.net/

Install

sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm
sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install php-oci8

Description

The php-oci8 packages provides the OCI8 extension version 3.1.0 and the PDO driver to access Oracle Database. The extension is linked with Oracle client libraries 21.13 (Oracle Instant Client). For details, see Oracle's note "Oracle Client / Server Interoperability Support" (ID 207303.1). You must install libclntsh.so.21.1 to use this package, provided by Oracle Instant Client RPM available from Oracle on: https://www.oracle.com/database/technologies/instant-client/downloads.html Documentation is at http://php.net/oci8 and http://php.net/pdo_oci

Compatibility

This package is compatible with all RHEL-based distributions, including CentOS, AlmaLinux, Oracle Linux, Rocky Linux, etc.

RPMs

Package Size Built Changes
php-oci8-8.1.34-11.el7.x86_64 145 KiB 2026-10-24 Danila Vershinin
- add RuntimeDirectory=php-fpm to the base-shape unit (RHEL parity): · systemd recreates /run/php-fpm on every service start
php-oci8-8.1.34-10.el7.x86_64 145 KiB 2026-10-24 Danila Vershinin
- ship tmpfiles.d/php-fpm.conf in the base shape: recreate /run/php-fpm at · boot, without it php-fpm fails to start after a reboot
php-oci8-8.1.34-9.el7.x86_64 145 KiB 2026-10-24 Danila Vershinin
- add gps_license license-presence extension, statically compiled into every · SAPI (ADR-002): phpinfo attribution section, cron.daily verdict heartbeat, · dormant guarded HTML footer tier (hard clamps to footer, fail-open to soft)
php-oci8-8.1.34-8.el7.x86_64 145 KiB 2026-10-23 Danila Vershinin
- enable the oci8 / pdo_oci build (new oci8 subpackage), linked against · Oracle Instant Client 21.13 exactly like Remi's EL7 build (soname · libclntsh.so.21.1; the client is fetched at build time only and never · shipped). Unblocks the Remi to GetPageSpeed upgrade on hosts that have · Remi's oci8 package installed (its exact-NVR pdo dependency).

Subscribe