Remove complete php install from your Sys
Remove PHP
sudo apt remove php7* php8* -y
Install New Package
1. sudo apt update
2. sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg2
Sury Install
1. sudo echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list
2. wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add -
3. sudo apt update
PHP install
1. sudo apt install php8.1
2. sudo apt install php8.1-{mysql,cli,cgi,common,imap,ldap,xml,fpm,curl,mbstring,zip}
Froxlor Download & Install
1. wget https://files.froxlor.org/testing/froxlor-0.10.33-2.deb
2. sudo apt install path/froxlor-0.10.33-2.deb