How to install php7.4-cli on Ubuntu

command-line interpreter for the PHP scripting language

Vendor: Debian PHP Maintainers http://www.php.net/

Availability

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

Distro Channel amd64 Version
Ubuntu 20.04 (focal) Base 7.4.33

Description

This package provides the /usr/bin/php7.4 command interpreter, useful for testing PHP scripts from a shell or performing general shell scripting tasks. The following extensions are built in: Core date filter gps_license hash libxml openssl pcntl pcre Reflection session sodium SPL standard zlib. PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

Built for Ubuntu.

Install

Base Ubuntu 20.04

php7.4-cli on Ubuntu 20.04 (focal)

curl -fsSL https://extras.getpagespeed.com/release-latest.deb -o /tmp/getpagespeed-release.deb
sudo apt-get install -y /tmp/getpagespeed-release.deb
rm /tmp/getpagespeed-release.deb
sudo apt-get update
sudo apt-get install -y php7.4-cli

Package downloads require an active GetPageSpeed subscription — one repository for php7.4-cli and thousands more packages for Ubuntu.

Subscribe — from $10/mo

Other releases and channels: use the setup wizard.

Frequently asked questions

How do I install php7.4-cli on Ubuntu?

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

Which Ubuntu versions is php7.4-cli available for?

php7.4-cli is available for Ubuntu 20.04.

Subscribe