How to install php8.1-cgi on Ubuntu
server-side, HTML-embedded scripting language (CGI binary)
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 | 8.1.34 |
Description
This package provides the /usr/lib/cgi-bin/php CGI interpreter built for use in Apache 2 with mod_actions, or any other CGI httpd that supports a similar mechanism. Note that MOST users probably want the php8.1-fpm package. The following extensions are built in: Core date filter gps_license hash json 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
php8.1-cgi 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.1-cgi
Package downloads require an active GetPageSpeed subscription — one repository for php8.1-cgi 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.1-cgi on Ubuntu?
Add the GetPageSpeed repository, then install the php8.1-cgi package with your system package manager.
Which Ubuntu versions is php8.1-cgi available for?
php8.1-cgi is available for Ubuntu 20.04.