Debian wants to install every php version

Debian 10 server updated and running HestiaCP 1.5.4. Only php 7.4 is installed and being used for over a year.

When a new version of php is pushed, I receive an email from the server to upgrade php. This time, when I received the email about the latest php 7.4 update, Debian wants to install and update every version of php, including the 5 versions that aren’t installed:

The following NEW packages will be installed:
  php7.0-cli php7.0-json php7.0-opcache php7.0-phpdbg php7.0-readline php7.1-cli php7.1-json php7.1-opcache php7.1-phpdbg
  php7.1-readline php7.2-cli php7.2-json php7.2-opcache php7.2-phpdbg php7.2-readline php7.3-cli php7.3-json php7.3-opcache
  php7.3-phpdbg php7.3-readline php8.1-cli php8.1-common php8.1-mbstring php8.1-opcache php8.1-readline
The following packages will be upgraded:
  php-cli php-common php-mbstring php7.0-apcu php7.1-apcu php7.2-apcu php7.3-apcu php7.4-apcu php7.4-imagick
9 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/15.4 MB of archives.
After this operation, 57.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] n

Not sure if this is a Debian or Hestia issue that was introduced.

The only directories in /etc/php that have a cli directory is 7.4 and 8.0 .

Probally due the fact you used php-redis instead of phpx.x-redis

Hi @eris

Nope, I haven’t installed or used Redis on the server. This is the first time this has occurred since the 1.5.4 upgrade. Wondering if it’s safe to run the update… Also wondering if it’s a Debian repo issue. Php updates have always been just 7.4 in the past.

It also applies for the other modules :wink:

It is probally an issue with Deb.sury

1 Like

I think you’re right @eris – it’s a deb.sury issue and not a Hestia issue. Strange it’s not happening on my local instance of Hestia bn our live remote server.

If others are experiencing this:

Upgrading PHP7.4 on Debian 10.7 wants to install packges from other PHP versions · Issue #1503 · oerdnj/ · GitHub

Unversioned PECL (apcu, msgpack, memcached, ...) extension packages install all PHP versions · Issue #1465 · oerdnj/ · GitHub

Now to try and figure out how to fix this without crippling the server…

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.