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: 997
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: 66
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 522 times
User avatar
myVesta
Site Admin
Posts: 997
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: 66
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: 997
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: 66
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.
User avatar
T4B
Posts: 173
Joined: Sat Jul 11, 2020 9:44 am
Been thanked: 5 times

when we get 8.5
fsoyer
Posts: 7
Joined: Thu Oct 31, 2024 10:37 am

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.
Guy, you saved my life !
Thanks !
Just an update, il you want for example the cli php in 8.4, do :
update-alternatives --config php
mccn
Posts: 11
Joined: Thu May 06, 2021 2:00 pm

Hello myvestacp funs

Have problem on install php 8.4
all steps no problem on install

edit theme package apache to php 8.4 save and reboot serwer. PHP 8.4 dont work wordpress sey upgrade from PHP (8.2.31) to min 8.3 - 8.4

any idea ?

Sorry my bad en...
Post Reply