How to install php-oci8 in CentOS/RHEL 7 (x86_64)
A module for PHP applications that use OCI8 databases
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.0.12 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-5.6.40-62.el7.x86_64 | 157 KiB | 2026-12-03 |
Danila Vershinin - http stream wrapper: user headers joined with a lone LF are sent with · CRLF and counted again, so no second Host or Content-Type is added · - rename() across filesystems: a refused chown no longer fails the call · and leaves both files (bug #77630 follow-up) |
| php-oci8-5.6.40-61.el7.x86_64 | 157 KiB | 2026-12-02 |
Danila Vershinin - Improved the everpatch extension |
| php-oci8-5.6.40-60.el7.x86_64 | 157 KiB | 2026-11-29 |
Danila Vershinin - fix CVE-2025-1217 CVE-2025-1734 CVE-2025-1861 CVE-2025-1736 · CVE-2026-127960 CVE-2015-9253 CVE-2025-1220 CVE-2025-6491 · CVE-2019-19246 CVE-2026-7260 CVE-2026-17543 CVE-2024-11236 · CVE-2026-6722 · - http stream wrapper: long response header lines are kept (bug #78719); · user headers count only at a line start (bug #79265) · - http stream wrapper: header values are trimmed; Location:, Content-Type: · and Content-Length: match without a space after the colon |
| php-oci8-5.6.40-59.el7.x86_64 | 156 KiB | 2026-11-27 |
Danila Vershinin - Improved the everpatch extension |
| php-oci8-5.6.40-58.el7.x86_64 | 156 KiB | 2026-11-27 |
Danila Vershinin - php-fpm saves the php56w-fpm service state before its own preset |
| php-oci8-5.6.40-56.el7.x86_64 | 156 KiB | 2026-11-21 |
Danila Vershinin - security: CVE-2025-1735, the pgsql and pdo_pgsql extensions now check · libpq's escaping functions for errors · - build: fail when a packaged extension module does not load |
| php-oci8-5.6.40-55.el7.x86_64 | 156 KiB | 2026-11-21 |
Danila Vershinin - Improved the everpatch extension |