Madrix
November 22, 2026, 4:49pm
1
SYSTEM INFORMATION
Version Webmin
2.670
Version Usermin
2.570
Version Virtualmin
8.3.0 GPL
Version Apache
2.4.71
Hello,
Yesterday or the day before, there was a PHP packages update. I noticed that it also installed a new version, PHP 8.6, but only the CLI version, even though PHP 8.6 wasn’t installed on the system beforehand.
Why was it installed? How can we uninstall it? Is it safe to remove it, or was this installation triggered by mistake?
debian@ns:~$ /usr/bin/php -v
PHP 8.6.0 (cli) (built: Nov 20 2026 15:05:21) (NTS)
Copyright © The PHP Group and Contributors
Built by Debian
Zend Engine v4.6.0, Copyright © Zend by Perforce
with Xdebug v3.6.0alpha1, Copyright (c) 2002-2026, by Derick Rethans
with Zend OPcache v8.6.0, Copyright ©, by Zend by Perforce
debian@ns:~$
CTS
November 22, 2026, 4:52pm
2
Virtualmin does not install PHP packages, your OS package manager does (apt,dnf) and repos you have set up. What OS are you using? Have you installed 3rd party repo’s like Remi?
OK from the output you posted you are Debian, but the other questions are valid.
Madrix
November 22, 2026, 4:57pm
3
I don’t think I installed any repositories manually; here is what I found:
debian@ns:~$ ls -l /etc/apt/sources.list.d/
total 24
-rw-r--r-- 1 root root 311 14 déc. 2023 debian.sources
-rw-r--r-- 1 root root 155 29 avril 2026 nodesource.sources
-rw-r--r-- 1 root root 49 18 déc. 2023 sury-debian-php-bookworm.list
-rw-r--r-- 1 root root 121 18 déc. 2023 virtualmin.list
-rw-r--r-- 1 root root 135 18 déc. 2023 webmin.list
-rw-r--r-- 1 root root 85 21 avril 2026 yarn.list
debian@ns:~$ cat /etc/apt/sources.list.d/*
Types: deb deb-src
URIs: mirror+file:///etc/apt/mirrors/debian.list
Suites: bookworm bookworm-updates bookworm-backports
Components: main contrib non-free-firmware
Types: deb deb-src
URIs: mirror+file:///etc/apt/mirrors/debian-security.list
Suites: bookworm-security
Components: main contrib non-free-firmware
Types: deb
URIs: https://deb.nodesource.com/node_25.x
Suites: nodistro
Components: main
Architectures: amd64
Signed-By: /usr/share/keyrings/nodesource.gpg
deb https://packages.sury.org/php/ bookworm main
deb [signed-by=/usr/share/keyrings/debian-virtualmin-7.gpg] https://software.virtualmin.com/vm/7/gpl/apt virtualmin main
deb [signed-by=/usr/share/keyrings/debian-webmin-developers.gpg] https://download.webmin.com/download/newkey/repository stable contrib
deb [signed-by=/etc/apt/keyrings/yarn.gpg] https://dl.yarnpkg.com/debian stable main
debian@ns:~$
Madrix
November 22, 2026, 4:59pm
4
There’s also this:
debian@ns:~$ apt-cache policy php8.6-fpm
php8.6-fpm:
Installé : (aucun)
Candidat : 8.6.0-3+debsuryorg12.1+1
Table de version :
8.6.0-3+debsuryorg12.1+1 500
500 https://packages.sury.org/php bookworm/main amd64 Packages
debian@ns:~$
debian@ns:~$ apt-cache policy php8.6-cli
php8.6-cli:
Installé : 8.6.0-3+debsuryorg12.1+1
Candidat : 8.6.0-3+debsuryorg12.1+1
Table de version :
*** 8.6.0-3+debsuryorg12.1+1 500
500 https://packages.sury.org/php bookworm/main amd64 Packages
100 /var/lib/dpkg/status
debian@ns:~$
CTS
November 22, 2026, 5:11pm
5
500 https://packages.sury.org/php bookworm/main amd64 Packages
seems like you did add extra repo at some point
Madrix
November 22, 2026, 5:17pm
6
Ah, I’m not really sure anymore. Sometimes I accept package installation suggestions, especially when they are recommended by Debian itself.
Anyway, I’ve resolved the issue by installing the complete PHP 8.6 package set.
CTS
November 22, 2026, 5:27pm
7
Need to be careful about installing packages and repo’s until you have researched first.
Suri set 8.6 as the default so the generic php pseudo package will now point to that and an apt upgrade will install 8.6
CTS
November 25, 2026, 7:21pm
9
that is correct, Debian Bookworm default PHP is 8.2 ( EOL December 31, 2026 ) So to get more current version(s) have to use 3rd party repo, such as Suri. For RHEL we use Remi