Add Php repository
apt install software-properties-common ca-certificates lsb-release apt-transport-https
LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php
apt update
Install php and extensions
apt install php8.2 php8.2 libapache2-mod-php8.2 php8.2-mysql php8.2-fpm php8.2-xml zip unzip php8.2-zip php8.2-gd php8.2-mbstring php8.2-curl curl php8.2-xmlrpc php8.2-soap php8.2-intl -y