Install PHP 8.1 Debian 11 – Sury PPA

Last updated on January 19th, 2023 at 02:17 pm.

Install PHP 8.1 Debian 11

Add the DEB.SURY.ORG repository PPA on Debian 11

curl -sSL | sudo bash -x  ;  sudo apt update

Install php 8.1 FPM and other relevant modules.

sudo apt install php8.1-fpm php8.1-common php8.1-mysql php8.1-gmp php8.1-curl php8.1-intl php8.1-mbstring php8.1-xmlrpc php8.1-gd php8.1-xml php8.1-cli php8.1-zip php8.1-soap php8.1-imap

Confirm new PHP version

    php -v 

You can also check the installed modules

    php --modules

Related : Ubuntu 22.04 HestiaCP Tutorial – Run WordPress on a VPS

Recommended VPS Providers

Find out the VPS providers I recommend.

Sign up below to learn how to host multiple WordPress websites on a VPS / Cloud Server.

Comment Here