Hi,
I’m running icinga2 on an Ubuntu 20.04.6 lts. Unfortunately I have a little PHP mess. I have installed PHP 8.0, 8.2 and 8.3 see the following list from dpkg --get-selections |grep php
My goal is to only have one version of PHP installed, it doesn’t matter to me whether it’s 8.2 or 8.3.
But as soon as I want to purge “apt remove php8.0-* --purge” or 8.3, icingaweb2 and others are uninstalled. See in List #2.
Below are the results for “apt show php8.x-common” and “pvp -v”.
Only php8.2 is loaded in /etc/apache2/mods-enabled/ and /etc/apache2/conf-enabled/.
Where exactly can I find the dependency of icinga on PHP, or how can I reconfigure it?
Thank you very much for your help!
Greetings
#dpkg --get-selections |grep php
icinga-director-php install
icinga-php-incubator install
icinga-php-library install
icinga-php-thirdparty install
libapache2-mod-php8.0 install
libapache2-mod-php8.1 install
libapache2-mod-php8.2 install
libapache2-mod-php8.3 install
php install
php-apcu install
php-common install
php-icinga install
php-imagick install
php-ldap install
php-mysql install
php-pear install
php-pgsql install
php-smbclient install
php8.0 install
php8.0-apcu deinstall
php8.0-cli install
php8.0-common install
php8.0-curl install
php8.0-dev install
php8.0-fpm install
php8.0-gd install
php8.0-gmp install
php8.0-imagick install
php8.0-imap install
php8.0-intl install
php8.0-mbstring install
php8.0-mysql install
php8.0-opcache install
php8.0-readline install
php8.0-smbclient deinstall
php8.0-soap install
php8.0-xml install
php8.0-xmlrpc install
php8.0-zip install
php8.1-cli install
php8.1-common install
php8.1-opcache install
php8.1-readline install
php8.2 install
php8.2-apcu install
php8.2-bcmath install
php8.2-bz2 install
php8.2-cli install
php8.2-common install
php8.2-curl install
php8.2-fpm install
php8.2-gd install
php8.2-gmp install
php8.2-igbinary install
php8.2-imagick install
php8.2-intl install
php8.2-ldap install
php8.2-mbstring install
php8.2-mysql install
php8.2-opcache install
php8.2-pgsql deinstall
php8.2-phpdbg install
php8.2-readline install
php8.2-redis install
php8.2-smbclient install
php8.2-soap deinstall
php8.2-xml install
php8.2-zip install
php8.3 install
php8.3-apcu install
php8.3-cli install
php8.3-common install
php8.3-imagick install
php8.3-ldap install
php8.3-mysql install
php8.3-opcache install
php8.3-pgsql install
php8.3-readline install
php8.3-smbclient install
pkg-php-tools install
List #2
The following packages were automatically installed and are no longer required:
debhelper dh-autoreconf dh-strip-nondeterminism dwz icinga-l10n icinga-php-library icingaweb2-common libarchive-cpio-perl libarchive-zip-perl libc-client2007e
libdebhelper-perl libfile-stripnondeterminism-perl libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix3 libssl-dev libsub-override-perl libxmlrpc-epi0 mlock pkg-config
pkg-php-tools shtool
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
icinga-director* icinga-director-daemon* icinga-director-php* icinga-director-web* icinga-php-incubator* icinga-php-thirdparty* icingacli* icingadb-web* icingaweb2*
libapache2-mod-php8.0* php-icinga* php8.0* php8.0-apcu* php8.0-cli* php8.0-common* php8.0-curl* php8.0-dev* php8.0-fpm* php8.0-gd* php8.0-gmp* php8.0-imagick* php8.0-imap*
php8.0-intl* php8.0-mbstring* php8.0-mysql* php8.0-opcache* php8.0-readline* php8.0-smbclient* php8.0-soap* php8.0-xml* php8.0-xmlrpc* php8.0-zip*
0 upgraded, 0 newly installed, 32 to remove and 0 not upgraded.
After this operation, 131 MB disk space will be freed.
# apt show php8.0-common
Package: php8.0-common
Version: 1:8.0.30-3+ubuntu20.04.1+deb.sury.org+1
Priority: optional
Section: php
Source: php8.0
Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>
Installed-Size: 8,286 kB
Provides: php-calendar, php-ctype, php-exif, php-ffi, php-fileinfo, php-ftp, php-iconv, php-pdo, php-phar, php-posix, php-shmop, php-sockets, php-sysvmsg, php-sysvsem, php-sysvshm, php-tokenizer, php8.0-calendar, php8.0-ctype, php8.0-exif, php8.0-ffi, php8.0-fileinfo, php8.0-ftp, php8.0-gettext, php8.0-iconv, php8.0-pdo, php8.0-phar, php8.0-posix, php8.0-shmop, php8.0-sockets, php8.0-sysvmsg, php8.0-sysvsem, php8.0-sysvshm, php8.0-tokenizer
Depends: php-common (>= 1:81~), ucf, libc6 (>= 2.27), libffi7 (>= 3.3~20180313), libssl1.1 (>= 1.1.0)
Breaks: gforge-common (<< 6), php7.0-curl (<< 7.0.33-1~), php7.2-sodium (<< 7.2.12~)
Download-Size: 664 kB
APT-Manual-Installed: yes
APT-Sources: http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 Packages
Description: documentation, examples and common module for PHP
This package provides the documentation, examples and common module(s) for PHP.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
# apt show php8.2-common
Package: php8.2-common
Version: 8.2.16-3+ubuntu20.04.1+deb.sury.org+1
Priority: optional
Section: php
Source: php8.2
Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>
Installed-Size: 8,682 kB
Provides: php-calendar, php-ctype, php-exif, php-ffi, php-fileinfo, php-ftp, php-iconv, php-pdo, php-phar, php-posix, php-shmop, php-sockets, php-sysvmsg, php-sysvsem, php-sysvshm, php-tokenizer, php8.2-calendar, php8.2-ctype, php8.2-exif, php8.2-ffi, php8.2-fileinfo, php8.2-ftp, php8.2-gettext, php8.2-iconv, php8.2-pdo, php8.2-phar, php8.2-posix, php8.2-shmop, php8.2-sockets, php8.2-sysvmsg, php8.2-sysvsem, php8.2-sysvshm, php8.2-tokenizer
Depends: php-common (>= 1:81~), ucf, libc6 (>= 2.27), libffi7 (>= 3.3~20180313), libssl1.1 (>= 1.1.0)
Breaks: gforge-common (<< 6), php7.0-curl (<< 7.0.33-1~), php7.2-sodium (<< 7.2.12~)
Download-Size: 680 kB
APT-Manual-Installed: yes
APT-Sources: http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 Packages
Description: documentation, examples and common module for PHP
This package provides the documentation, examples and common module(s) for PHP.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
# apt show php8.3-common
Package: php8.3-common
Version: 8.3.3-1+ubuntu20.04.1+deb.sury.org+1
Priority: optional
Section: php
Source: php8.3
Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>
Installed-Size: 9,624 kB
Provides: php-calendar, php-ctype, php-exif, php-ffi, php-fileinfo, php-ftp, php-iconv, php-pdo, php-phar, php-posix, php-shmop, php-sockets, php-sysvmsg, php-sysvsem, php-sysvshm, php-tokenizer, php8.3-calendar, php8.3-ctype, php8.3-exif, php8.3-ffi, php8.3-fileinfo, php8.3-ftp, php8.3-gettext, php8.3-iconv, php8.3-pdo, php8.3-phar, php8.3-posix, php8.3-shmop, php8.3-sockets, php8.3-sysvmsg, php8.3-sysvsem, php8.3-sysvshm, php8.3-tokenizer
Depends: php-common (>= 1:81~), ucf, libc6 (>= 2.27), libffi7 (>= 3.3~20180313), libssl1.1 (>= 1.1.0)
Breaks: gforge-common (<< 6), php7.0-curl (<< 7.0.33-1~), php7.2-sodium (<< 7.2.12~)
Download-Size: 708 kB
APT-Manual-Installed: no
APT-Sources: http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 Packages
Description: documentation, examples and common module for PHP
This package provides the documentation, examples and common module(s) for PHP.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
# php -v
PHP 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 (cli) (built: Feb 15 2024 18:38:21) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.3, Copyright (c) Zend Technologies
with Zend OPcache v8.3.3-1+ubuntu20.04.1+deb.sury.org+1, Copyright (c), by Zend Technologies