How to install php56-php-cli on AlmaLinux, Rocky Linux, Oracle Linux and RHEL
Command-line interface for PHP
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.6.40 |
Description
The php56-php-cli package contains the command-line interface executing PHP scripts, /opt/remi/php56/root/usr/bin/php, and the CGI interface.
Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Install
Base
RHEL 7
php56-php-cli 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 php56-php-cli
Package downloads require an active GetPageSpeed subscription — one repository for php56-php-cli and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Subscribe — from $10/moFrequently asked questions
How do I install php56-php-cli on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?
Add the GetPageSpeed repository, then install the php56-php-cli package with your system package manager.
Which Enterprise Linux versions is php56-php-cli available for?
php56-php-cli is available for RHEL 7.