


Zend Engine v4.1.1, Copyright (c) Zend Technologies Once the PHP is installed, you can check the PHP version on your system with the following command: $ php8.1 -version Now, you can install the PHP 8.1 using the following command: $ sudo apt-get install php8.1 Install PHP 8.1 Once you are done, update the repository with the following command: $ apt-get update -y Install PHP 8.1 Next, download and add the GPG key with the following command: $ wget -qO - | apt-key add. Once all the packages are installed, add a Sury repository to APT using the following command: $ echo "deb $(lsb_release -sc) main" | tee /etc/apt//sury-php.list So you will need to add the repository to APT.įirst, install the required packages using the following command: $ sudo apt-get install ca-certificates apt-transport-https software-properties-common -y Update your Debian 11 operating system to make sure all existing packages are up to date: $ sudo apt update & sudo apt upgrade -y Add PHP Repositoryīy default, PHP 8.1 is not included in the Debian 11 default repository. In this tutorial, we will show you how to install PHP 8.1 on a Debian 11 system. The latest PHP 8.1 version is officially released on November 25th, 2021. It is a scripting language, mostly used for the front end with HTML. “HyperText Processor”, commonly known as PHP, is the open-source programming language used for Web application development.
