Debian11 + MyVesta + Nginx + PHP-fpm 8.0

Post Reply
Posts: 2
Joined: Tue Oct 18, 2022 6:49 pm

Hi Guys,
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. :D

After that you have to update apt using the Sury package:

Code: Select all

echo "deb $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/phpsury
Then you'll have to block the install of php 8.1.
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
After download the script packages from the website:

Code: Select all

 curl -O 
You will have to edit.
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!

(16.23 KiB) Downloaded 33 times

Posts: 26
Joined: Sun Aug 08, 2021 9:58 pm

Umm, so we can't use PHP 8.1 with myVesta? The OS on my VPS is Debian10.
Post Reply