View this package for all Ubuntu releases →

How to install php7.4 in Ubuntu 20.04 (focal) (all)

server-side, HTML-embedded scripting language (metapackage)

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

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

Description

This package is a metapackage that, when installed, guarantees that you have at least one of the four server-side versions of the PHP interpreter installed. Removing this package won't remove PHP from your system, however it may remove other packages that depend on this one. 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_1:7.4.33-31+gps1+ubuntu2004+stable.4_all 56 KiB 2026-11-13
php7.4_1:7.4.33-31+gps1+ubuntu2004+stable.3_all 56 KiB 2026-11-12

Subscribe