View this package for all Ubuntu releases →

How to install php7.4-cli in Ubuntu 20.04 (focal) (amd64)

command-line interpreter for the PHP scripting language

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

Install

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

Installing packages requires an active GetPageSpeed subscription. For other releases and channels, use the setup wizard.

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 everpatch filter 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.

Packages

Package Size Built
php7.4-cli_1:7.4.33-31+gps1+ubuntu2004+stable.4_amd64 1.4 MiB 2026-11-13
php7.4-cli_1:7.4.33-31+gps1+ubuntu2004+stable.3_amd64 1.4 MiB 2026-11-12

Subscribe