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 2.2.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-7.4.33-46.el7.x86_64 141 KiB 2026-11-21 Danila Vershinin
- Improved the everpatch extension
php-oci8-7.4.33-45.el7.x86_64 141 KiB 2026-11-19 Danila Vershinin
- CVE-2026-129496 (GHSA-gr4f-wgx5-jpfv): timezone cache use-after-free in php_log_err() (log lines outside an active request are stamped in UTC) · - CVE-2026-126714 (GHSA-fm2m-fjf5-v3cp): session files are always truncated before a write (partially overwritten session file RCE) · - CVE-2026-129291 (GHSA-jm4m-qfqx-967m): FPM closed a child stdio pipe without removing its epoll event (use-after-free) · - CVE-2026-128064 (GHSA-f6gg-rchx-xw8j): mixed-case HTTPS/FTPS URLs were fetched in plaintext · - CVE-2026-128090 (GHSA-68fq-fh7h-f8gr): phar signature downgrade from OpenSSL to a keyless hash · - CVE-2026-129538 (GHSA-5j3f-64r7-f564): php-cgi PATH_INFO pointer underflow · - CVE-2026-129506 (GHSA-4646-p932-gw34): SOAP freed the DTD while entity references pointed into it · - CVE-2026-15353 (GHSA-q23r-hr55-xmpg): SOAP empty arraySize out-of-bounds read · - CVE-2026-129289 (GHSA-qc49-hpvq-g2w6): FastCGI request smuggling via an unread request body · - CVE-2026-129292 (GHSA-3mg3-cr28-46gc): FPM status page XSS via request method, auth user and script filename · - CVE-2026-129474 (GHSA-8mjj-2r7p-4hg2): debug_backtrace args of a __call trampoline frame (hardening) · - CVE-2026-127960 (GHSA-mmf9-xm3v-hg2x): quadratic copying of folded HTTP response headers
php-oci8-7.4.33-44.el7.x86_64 140 KiB 2026-11-13 Danila Vershinin
- DatePeriod::__construct(): restore error handling and name the class when · the DateInterval is uninitialized; later warnings in the request were · thrown as exceptions (GH-22643 follow-up) · - pg_convert(): release the string buffer when escaping fails (leak on the · error path of the pgsql escaping-error backport)
php-oci8-7.4.33-43.el7.x86_64 140 KiB 2026-11-11 Danila Vershinin
- the built-in gps_license extension is renamed to everpatch · (php --ri everpatch); its info section now shows the exact package, · platform, license status and the security fixes compiled into this build
php-oci8-7.4.33-41.el7.x86_64 139 KiB 2026-10-30 Danila Vershinin
- php -v and phpinfo Build Provider show the package release
php-oci8-7.4.33-40.el7.x86_64 139 KiB 2026-10-27 Danila Vershinin
- support a license file at /etc/getpagespeed/license.jwt
php-oci8-7.4.33-38.el7.x86_64 139 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-7.4.33-37.el7.x86_64 139 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-7.4.33-36.el7.x86_64 139 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)

Subscribe