Page 7 of 7

Re: How to install multi PHP versions

Posted: Sat Jun 06, 2026 9:38 pm
by stud_muffler
Debian 12 minimal install plus myVesta.
Running as root, but this does not look like a successful install:
bash ./vesta-inst-php.sh
debian_version=12
inst_repo=1
inst_56=1
inst_70=1
inst_71=0
inst_72=0
inst_73=0
inst_74=0
inst_80=0
inst_81=0
inst_82=0
inst_83=0
inst_84=0
wait_to_press_enter=0
=== Press enter to continue ===============================================================================
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://deb.debian.org/debian bookworm-backports InRelease
Hit:5 https://nginx.org/packages/mainline/debian bookworm InRelease
Hit:6 https://packages.sury.org/php bookworm InRelease
Hit:7 https://apt.myvestacp.com/bookworm bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
50 packages can be upgraded. Run 'apt list --upgradable' to see them.
N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware'
N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookwor ... free-split
=== Press enter to install sury.org repo ===============================================================================
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
apt-transport-https is already the newest version (2.6.1).
ca-certificates is already the newest version (20230311+deb12u1).
0 upgraded, 0 newly installed, 0 to remove and 50 not upgraded.
2026-06-06 15:21:16 URL:https://packages.sury.org/php/apt.gpg [3182/3182] -> "/etc/apt/trusted.gpg.d/php.gpg" [1]
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://deb.debian.org/debian bookworm-backports InRelease
Hit:5 https://nginx.org/packages/mainline/debian bookworm InRelease
Hit:6 https://packages.sury.org/php bookworm InRelease
Hit:7 https://apt.myvestacp.com/bookworm bookworm InRelease
Reading package lists... Done
N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware'
N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookwor ... free-split
=== Press enter to continue ===============================================================================
=== Enabling proxy_fcgi setenvif
./vesta-inst-php.sh: line 129: a2enmod: command not found
./vesta-inst-php.sh: line 130: service: command not found
=== Press enter to install PHP 5.6 ===============================================================================
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
php-common : Breaks: php-mcrypt (< 3:1.0.7-5~)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
./vesta-inst-php.sh: line 136: update-rc.d: command not found
./vesta-inst-php.sh: line 137: a2enconf: command not found
cp: cannot stat '/etc/php/5.6/': No such file or directory
2026-06-06 15:21:28 URL:https://c.myvestacp.com/tools/apache-fp ... PM-56.stpl [1424/1424] -> "/usr/local/vesta/data/templates/web/apache2/PHP-FPM-56.stpl" [1]
2026-06-06 15:21:29 URL:https://c.myvestacp.com/tools/apache-fp ... FPM-56.tpl [1239/1239] -> "/usr/local/vesta/data/templates/web/apache2/PHP-FPM-56.tpl" [1]
2026-06-06 15:21:29 URL:https://c.myvestacp.com/tools/apache-fp ... -FPM-56.sh [2615/2615] -> "/usr/local/vesta/data/templates/web/apache2/PHP-FPM-56.sh" [1]
2026-06-06 15:21:30 URL:https://c.myvestacp.com/tools/patches/php5.6.patch [3741/3741] -> "/root/vesta-temp-dl/vesta/patch/php5.6.patch" [1]
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- origin/etc/php/5.6/fpm/php.ini 2016-10-03 13:42:37.000000000 +0200
|+++ vesta/etc/php/5.6/fpm/php.ini 2016-09-30 14:10:49.000000000 +0200
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
6 out of 6 hunks ignored
=== Press enter to continue ===============================================================================
=== Press enter to install PHP 7.0 ===============================================================================
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
php-common : Breaks: php-mcrypt (< 3:1.0.7-5~)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
./vesta-inst-php.sh: line 155: update-rc.d: command not found
./vesta-inst-php.sh: line 156: a2enconf: command not found
cp: cannot stat '/etc/php/7.0/': No such file or directory
2026-06-06 15:22:01 URL:https://c.myvestacp.com/tools/apache-fp ... PM-70.stpl [1424/1424] -> "/usr/local/vesta/data/templates/web/apache2/PHP-FPM-70.stpl" [1]
2026-06-06 15:22:02 URL:https://c.myvestacp.com/tools/apache-fp ... FPM-70.tpl [1239/1239] -> "/usr/local/vesta/data/templates/web/apache2/PHP-FPM-70.tpl" [1]
2026-06-06 15:22:02 URL:https://c.myvestacp.com/tools/apache-fp ... -FPM-70.sh [2614/2614] -> "/usr/local/vesta/data/templates/web/apache2/PHP-FPM-70.sh" [1]
=== Press enter to continue ===============================================================================
./vesta-inst-php.sh: line 431: service: command not found
=== Fixing php.ini files to have the correct disable_functions line
=== Everything is already correct.
Everything done.