How to install php-odbc on AlmaLinux, Rocky Linux, Oracle Linux and RHEL

A module for PHP applications that use ODBC databases

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

Availability

Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.

Distro Channel x86_64 Version
RHEL 7 Base 5.4.45
RHEL 6 Base 5.3.3

Description

The php-odbc package contains a dynamic shared object that will add database support through ODBC to PHP. ODBC is an open specification which provides a consistent API for developers to use for accessing data sources (which are often, but not always, databases). PHP is an HTML-embeddable scripting language. If you need ODBC support for PHP applications, you will need to install this package and the php package.

Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

Install

Base RHEL 6, 7

php-odbc on CentOS 7 / RHEL 7

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-odbc

php-odbc on CentOS / RHEL 6

sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm
sudo yum -y install php-odbc

php-odbc: Free to install; commercial production use requires a subscription. Without one, a small license notice appears on HTML pages after 30 days.

Subscribe — from $10/mo

Frequently asked questions

How do I install php-odbc on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?

Add the GetPageSpeed repository, then install the php-odbc package with your system package manager.

Which Enterprise Linux versions is php-odbc available for?

php-odbc is available for RHEL 6, 7.

Subscribe