hope this is useful for someone who need to install myVesta with a newest PHP version from scratch.
First of all, you cannot install PHP8.1 because it has some known problem with Phpmyadmin and it won't work.
Also, do not try to update an existing version or trying to install 2 version on the same server, update-alternatives do not work and both php-fpm stopped their work.
Now let's go to install.
First, install Debian 11, pretty obviously.

After that you have to update apt using the Sury package:
Code: Select all
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/phpsury
This could be done by editing (or creating) the /etc/apt/preferences file.
This is the way:
Code: Select all
Package: php
Pin: version 8.0
Pin-Priority: 100
Package: php-fpm
Pin: version 8.0
Pin-Priority: 100
Code: Select all
curl -O http://c.myvestacp.com/vst-install-debian.sh
I'll simplify all and attached the edited file.
After that you can enjoy your brand new myVesta with PHP8.0
Of course this way could be improved and it's not perfect, but it works!
Bye!