How to install multi PHP versions

mehargags
Posts: 1
Joined: Mon Jul 12, 2021 8:14 pm

I just installed on a Debian 10 fresh install server. Have to use Debain 10.13 due to Python 3.7.3 version lock for dependecies on my django app. Default PHP is 7.3 on Deb 10

After running multi-php to install PHP 7.4 and PHP 8.2, it installed well, the tempaltes seem to appear in the web templates to choose but in real the process has not installed any addiotional PHP.

ls -l /etc/init.d/php*

only shows 7.3 which is default install
-rwxr-xr-x 1 root root 4793 Jun 18 2024 /etc/init.d/php7.3-fpm

inside /etc/php also I only see 7.3, folder structure was not created either.

any clue how to get this done on old Debian 10 ?

Tags:
User avatar
myVesta
Site Admin
Posts: 972
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 10 times
Been thanked: 6 times

mehargags wrote: Sat Apr 26, 2025 1:31 pm I just installed on a Debian 10 fresh install server. Have to use Debain 10.13 due to Python 3.7.3 version lock for dependecies on my django app. Default PHP is 7.3 on Deb 10

After running multi-php to install PHP 7.4 and PHP 8.2
Sorry, but Sury.org repo dropped support for Debian 10, because Deb10 reached EOL phase - https://github.com/oerdnj/deb.sury.org/issues/2098

You can get it only with payment to them - https://www.freexian.com/lts/php/
User avatar
Meister
Posts: 63
Joined: Mon Nov 08, 2021 10:04 am

After getting myvestacp up and running on Debian 13, I customized the multi-php-install. With PHP 7.4, I got the error "Error: Unable to locate package php7.4-memcached
Error: Couldn't find any package by glob ‘php7.4-memcached’
update-rc.d: error: unable to read /etc/init.d/php7.4-fpm." I simply removed php7.4-memcached and then it worked for PHP 7.4. Perhaps you can still fix the error?

I have attached it for your reference. I have only tested the installation with PHP 5.6, PHP 7.4, and PHP 8.4. The php7.4-memcached error may also occur with other PHP 7.x versions.
Attachments
multi-php-install.zip
(3.5 KiB) Downloaded 140 times
User avatar
myVesta
Site Admin
Posts: 972
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 10 times
Been thanked: 6 times

Meister wrote: Tue Aug 19, 2025 2:35 pm After getting myvestacp up and running on Debian 13, I customized the multi-php-install. With PHP 7.4, I got the error "Error: Unable to locate package php7.4-memcached
Error: Couldn't find any package by glob ‘php7.4-memcached’
update-rc.d: error: unable to read /etc/init.d/php7.4-fpm." I simply removed php7.4-memcached and then it worked for PHP 7.4. Perhaps you can still fix the error?

I have attached it for your reference. I have only tested the installation with PHP 5.6, PHP 7.4, and PHP 8.4. The php7.4-memcached error may also occur with other PHP 7.x versions.
Support for Deb13 is in early test phase.
Please tell me what line you modified - https://github.com/myvesta/vesta/blob/m ... install.sh
User avatar
Meister
Posts: 63
Joined: Mon Nov 08, 2021 10:04 am

I removed php7.4-memcached in line 275. It appears to be duplicated in all PHP versions. How did this occur :D ?

Edit: No, it's not duplicated, but it says the following: php7.4-memcache php7.4-memcached

php7.4-memcached should be removed, as should the other PHP versions.
User avatar
myVesta
Site Admin
Posts: 972
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 10 times
Been thanked: 6 times

Meister wrote: Sat Aug 23, 2025 10:18 pm I removed php7.4-memcached in line 275. It appears to be duplicated in all PHP versions. How did this occur :D ?

Edit: No, it's not duplicated, but it says the following: php7.4-memcache php7.4-memcached

php7.4-memcached should be removed, as should the other PHP versions.
If php-memcached modules do not exist in Sury.org repo, it should be reported to him - and actually somebody already did it - https://codeberg.org/oerdnj/deb.sury.org/issues/8
User avatar
Meister
Posts: 63
Joined: Mon Nov 08, 2021 10:04 am

Yes, you're right. Let's wait and see. I think he'll send the package later. As long as it's not there yet, you can leave it out, because you often don't need it anyway.
Post Reply