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

Command-line interface for PHP

License: PHP and Zend and BSD 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 6 Base 5.3.3

Description

The php-cli package contains the command-line interface executing PHP scripts, /usr/bin/php, and the CGI interface.

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

Install

Base RHEL 6

php-cli on CentOS / RHEL 6

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

Package downloads require an active GetPageSpeed subscription — one repository for php-cli and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

Subscribe — from $10/mo

Frequently asked questions

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

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

Which Enterprise Linux versions is php-cli available for?

php-cli is available for RHEL 6.

Subscribe