How to install php-cli on Amazon Linux
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 |
|---|---|---|---|
| Amazon Linux 2012.03 | 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 Amazon Linux.
Install
Base
Amazon Linux 2012.03
php-cli on Amazon Linux 2012.03
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install php-cli
Package downloads require an active GetPageSpeed subscription — one repository for php-cli and thousands more packages for Amazon Linux.
Subscribe — from $10/moFrequently asked questions
How do I install php-cli on Amazon Linux?
Add the GetPageSpeed repository, then install the php-cli package with your system package manager.
Which Amazon Linux versions is php-cli available for?
php-cli is available for Amazon Linux 2012.03.