How To Install PHP 8.1 on Debian 11
Step 1: Update the Debian System We recommend you perform any installation on an upgraded Debian system. Run the commands provided to upgrade all packages and minor releases of your Debian system. sudo apt update sudo apt -y upgrade OS release can be checked with the command below: $ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" If your kernel was upgraded you can reboot the system to start using it. sudo reboot Step 2: Add the SurĂ½ APT repository to Debian The DEB.SURY.ORG repository is a home for packaging various software into Debian and Ubuntu-based Linux distributions. It contains the latest binary builds of PHP 8.1. The repository has to be added manually to the system. ...