I have an issue with a few servers after upgrading them. Seems that system php version (php-fpm) is not available after reboot. root@web004:~# update-alternatives --config php There are 9 choices for the alternative php (providing /usr/bin/php). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/bin/php.default 100 auto mode 1 /usr/bin/php.default 100 manual mode 2 /usr/bin/php5.6 56 manual mode 3 /usr/bin/php7.0 70 manual mode 4 /usr/bin/php7.1 71 manual mode 5 /usr/bin/php7.2 72 manual mode 6 /usr/bin/php7.3 73 manual mode * 7 /usr/bin/php7.4 74 manual mode 8 /usr/bin/php8.0 80 manual mode 9 /usr/bin/php8.1 81 manual mode Press <enter> to keep the current choice[*], or type selection number: root@web004:~# update-alternatives --config php-cgi There are 7 choices for the alternative php-cgi (providing /usr/bin/php-cgi). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/bin/php-cgi8.0 80 auto mode 1 /usr/bin/php-cgi5.6 56 manual mode 2 /usr/bin/php-cgi7.0 70 manual mode 3 /usr/bin/php-cgi7.1 71 manual mode 4 /usr/bin/php-cgi7.2 72 manual mode 5 /usr/bin/php-cgi7.3 73 manual mode * 6 /usr/bin/php-cgi7.4 74 manual mode 7 /usr/bin/php-cgi8.0 80 manual mode Press <enter> to keep the current choice[*], or type selection number: root@web004:~# update-alternatives --config php-fpm.sock There are 5 choices for the alternative php-fpm.sock (providing /run/php/php-fpm.sock). Selection Path Priority Status ------------------------------------------------------------ * 0 /run/php/php8.0-fpm.sock 80 auto mode 1 /run/php/php5.6-fpm.sock 56 manual mode 2 /run/php/php7.0-fpm.sock 70 manual mode 3 /run/php/php7.1-fpm.sock 71 manual mode 4 /run/php/php7.2-fpm.sock 72 manual mode 5 /run/php/php8.0-fpm.sock 80 manual mode Press <enter> to keep the current choice[*], or type selection number: Since this is debian 11 we should have php7.4 availabe and we do not Below is the output of another webserver (not upgraded) showing correct fpm version as available root@web003:~# update-alternatives --config php-fpm.sock There are 7 choices for the alternative php-fpm.sock (providing /run/php/php-fpm.sock). Selection Path Priority Status ------------------------------------------------------------ 0 /run/php/php8.0-fpm.sock 80 auto mode 1 /run/php/php5.6-fpm.sock 56 manual mode 2 /run/php/php7.0-fpm.sock 70 manual mode 3 /run/php/php7.1-fpm.sock 71 manual mode 4 /run/php/php7.2-fpm.sock 72 manual mode 5 /run/php/php7.3-fpm.sock 73 manual mode * 6 /run/php/php7.4-fpm.sock 74 manual mode 7 /run/php/php8.0-fpm.sock 80 manual mode Is there an issue ? What seems to be the problem? Regards Aris
root@web004:~# apt install php7.4-fpm Reading package lists... Done Building dependency tree... Done Reading state information... Done php7.4-fpm is already the newest version (1:7.4.32-1+0~20220929.71+debian10~1.gbpe9c007). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@web004:~#
Strange, maybe it's worth trying: apt install --reinstall php7.4-fpm as there must be a file missing when update-alternatives is not able to find that version anymore.
that did the trick root@web004:~# apt install --reinstall php7.4-fpm Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 1,446 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 https://packages.sury.org/php buster/main amd64 php7.4-fpm amd64 1:7.4.32-1+0~20220929.71+debian10~1.gbpe9c007 [1,446 kB] Fetched 1,446 kB in 0s (14.0 MB/s) (Reading database ... 60999 files and directories currently installed.) Preparing to unpack .../php7.4-fpm_1%3a7.4.32-1+0~20220929.71+debian10~1.gbpe9c007_amd64.deb ... Unpacking php7.4-fpm (1:7.4.32-1+0~20220929.71+debian10~1.gbpe9c007) over (1:7.4.32-1+0~20220929.71+debian10~1.gbpe9c007) ... Setting up php7.4-fpm (1:7.4.32-1+0~20220929.71+debian10~1.gbpe9c007) ... NOTICE: Not enabling PHP 7.4 FPM by default. NOTICE: To enable PHP 7.4 FPM in Apache2 do: NOTICE: a2enmod proxy_fcgi setenvif NOTICE: a2enconf php7.4-fpm NOTICE: You are seeing this message because you have apache2 package installed. Processing triggers for man-db (2.9.4-2) ... Processing triggers for php7.4-fpm (1:7.4.32-1+0~20220929.71+debian10~1.gbpe9c007) ... NOTICE: Not enabling PHP 7.4 FPM by default. NOTICE: To enable PHP 7.4 FPM in Apache2 do: NOTICE: a2enmod proxy_fcgi setenvif NOTICE: a2enconf php7.4-fpm NOTICE: You are seeing this message because you have apache2 package installed. root@web004:~# root@web004:~# update-alternatives --config php-fpm.sock There are 6 choices for the alternative php-fpm.sock (providing /run/php/php-fpm.sock). Selection Path Priority Status ------------------------------------------------------------ * 0 /run/php/php8.0-fpm.sock 80 auto mode 1 /run/php/php5.6-fpm.sock 56 manual mode 2 /run/php/php7.0-fpm.sock 70 manual mode 3 /run/php/php7.1-fpm.sock 71 manual mode 4 /run/php/php7.2-fpm.sock 72 manual mode 5 /run/php/php7.4-fpm.sock 74 manual mode 6 /run/php/php8.0-fpm.sock 80 manual mode Press <enter> to keep the current choice[*], or type selection number: selected 5 also did the following command a2enconf php7.4-fpm But after reboot it disappeared again Did the same procedure again without applying the a2enconf php7.4-fpm command rebooted and now i have the correct behaviour root@web004:~# update-alternatives --config php-fpm.sock There are 5 choices for the alternative php-fpm.sock (providing /run/php/php-fpm.sock). Selection Path Priority Status ------------------------------------------------------------ * 0 /run/php/php7.4-fpm.sock 74 auto mode 1 /run/php/php5.6-fpm.sock 56 manual mode 2 /run/php/php7.0-fpm.sock 70 manual mode 3 /run/php/php7.2-fpm.sock 72 manual mode 4 /run/php/php7.3-fpm.sock 73 manual mode 5 /run/php/php7.4-fpm.sock 74 manual mode Press <enter> to keep the current choice[*], or type selection number: root@web004:~#
Btw. The next ISPConfig version 3.2.9 which will be in beta in the next few days will be compatible with PHP 8 and 8.1 as system PHP versions. this is not that relevant for Debian 11, but Ubuntu 22.04 support is available then as well.