After upgrade to Nextcloud Hub 6 (27.1.9) I need to upgrade from PHP 8.0 to 8.2 which I have done:
“php -v” → PHP 8.2.18 (cli) (built: Apr 11 2024 20:37:35) (NTS)
I followed the instructions in Upgrade PHP 8.0 to 8.2.
However, I can’t seem to sort the php-fpm upgrade.
“a2enmod php8.2” produces the following:
Considering dependency mpm_prefork for php8.2:
Considering conflict mpm_event for mpm_prefork:
ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first!
Considering conflict mpm_worker for mpm_prefork:
ERROR: Could not enable dependency mpm_prefork for php8.2, aborting.
Nextcloud version (eg, 20.0.5): 27.1.9
Operating system and version (eg, Ubuntu 20.04): 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.59 (Ubuntu)
PHP version (eg, 7.4): 8.2.18
The issue you are facing:
Can’t resolve conflict between mpm_event and mpm_prefork
Is this the first time you’ve seen this error? (Y):
Steps to replicate it:
- Upgrade PHP 8.0 to 8.2
- Attempt to load 8.2php-fpm
- Error as above
Packages Loaded:
libapache2-mod-php8.0/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed,automatic]
libapache2-mod-php8.2/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php-common/jammy,now 2:94+ubuntu22.04.1+deb.sury.org+2 all [installed,automatic]
php-imagick/jammy,now 3.7.0-4+ubuntu22.04.1+deb.sury.org+2 amd64 [installed]
php8.0-apcu/jammy,now 5.1.23-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-bcmath/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-bz2/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-cli/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed,automatic]
php8.0-common/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-curl/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-fpm/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-gd/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-gmp/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-igbinary/jammy,now 3.2.15-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-imagick/jammy,now 3.7.0-4+ubuntu22.04.1+deb.sury.org+2 amd64 [installed]
php8.0-intl/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-mbstring/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-mysql/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-opcache/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-readline/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed,automatic]
php8.0-redis/jammy,now 6.0.2-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-xml/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0-zip/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.0/jammy,now 1:8.0.30-5+ubuntu22.04.1+deb.sury.org+1 all [installed]
php8.1-common/jammy,now 8.1.28-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed,automatic]
php8.1-readline/jammy,now 8.1.28-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed,automatic]
php8.2-apcu/jammy,now 5.1.23-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-bcmath/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-bz2/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-cli/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-common/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-curl/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-fpm/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-gd/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-gmp/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-igbinary/jammy,now 3.2.15-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-imagick/jammy,now 3.7.0-4+ubuntu22.04.1+deb.sury.org+2 amd64 [installed]
php8.2-intl/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-mbstring/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-mysql/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-opcache/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-phpdbg/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed,automatic]
php8.2-readline/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-redis/jammy,now 6.0.2-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-xml/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2-zip/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed]
php8.2/jammy,now 8.2.18-1+ubuntu22.04.1+deb.sury.org+1 all [installed]
php8.3-cli/jammy,now 8.3.6-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed,automatic]
php8.3-common/jammy,now 8.3.6-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed,automatic]
php8.3-imagick/jammy,now 3.7.0-4+ubuntu22.04.1+deb.sury.org+2 amd64 [installed,automatic]
php8.3-opcache/jammy,now 8.3.6-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed,automatic]
php8.3-phpdbg/jammy,now 8.3.6-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed,automatic]
php8.3-readline/jammy,now 8.3.6-1+ubuntu22.04.1+deb.sury.org+1 amd64 [installed,automatic]