How to install php8.2 on Ubuntu
server-side, HTML-embedded scripting language (metapackage)
Availability
Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.
| Distro | Channel | all | Version |
|---|---|---|---|
| Ubuntu 20.04 (focal) | Base | 8.2.35 |
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.
Built for Ubuntu.
Install
php8.2 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 php8.2
Package downloads require an active GetPageSpeed subscription — one repository for php8.2 and thousands more packages for Ubuntu.
Subscribe — from $10/moOther releases and channels: use the setup wizard.
Frequently asked questions
How do I install php8.2 on Ubuntu?
Add the GetPageSpeed repository, then install the php8.2 package with your system package manager.
Which Ubuntu versions is php8.2 available for?
php8.2 is available for Ubuntu 20.04.