How to install php-cli (x86_64)

Command-line interface for PHP

License: PHP and Zend and BSD and MIT and ASL 1.0 and NCSA and PostgreSQL Vendor: GetPageSpeed LLC http://www.php.net/

Install

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

Description

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

RPMs

Package Size Built Changes
php-cli-7.4.33-41.amzn2.x86_64 3.3 MiB 2026-10-30 Danila Vershinin
- php -v and phpinfo Build Provider show the package release
php-cli-7.4.33-40.amzn2.x86_64 3.3 MiB 2026-10-29 Danila Vershinin
- support a license file at /etc/getpagespeed/license.jwt

Subscribe