Sorry about my question about updates, but I’ve read many sites about that - and I’m very confused.
I’m only an NC user and my admin knowledge is very limited.
I’ve been using NC for a very long time, and I’m very happy; everything works wonderfully. I set up the cloud myself.
Now an update is due, and I’m stuck; I need tips and help.
Status
OS: Debian Bookwurm
php7.4.3
PC 25.013
What did I do:
I installed php8.0 and all the modules that were also installed in php7.4.
pi@nextcloud:~$ dpkg -l | grep php | tee php.txt
ii libapache2-mod-php7.4 1:7.4.33-13+0~20240606.93+debian11~1.gbp3bbf86 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mod-php8.0 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mod-php8.3 8.3.9-1+0~20240708.36+debian11~1.gbp429c36 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii php-apcu 5.1.23-1+0~20231125.39+debian11~1.gbp8bf49a amd64 APC User Cache for PHP
rc php-apcu-bc 1.0.5-19+0~20230618.29+debian11~1.gbp6ddc4e amd64 APCu Backwards Compatibility Module
ii php-common 2:94+0~20240205.51+debian11~1.gbp6faa2e all Common files for PHP packages
ii php-dompdf 0.6.2+dfsg-3.1 all HTML to PDF converter
ii php-font-lib 0.3.1+dfsg-3.1 all read, parse, export and make subsets of different fonts
ii php8.0 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 all server-side, HTML-embedded scripting language (metapackage)
ii php8.0-apcu 5.1.23-1+0~20231125.39+debian11~1.gbp8bf49a amd64 APC User Cache for PHP
ii php8.0-bcmath 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 Bcmath module for PHP
ii php8.0-bz2 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 bzip2 module for PHP
ii php8.0-cgi 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 server-side, HTML-embedded scripting language (CGI binary)
ii php8.0-cli 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 command-line interpreter for the PHP scripting language
ii php8.0-common 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 documentation, examples and common module for PHP
ii php8.0-curl 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 CURL module for PHP
ii php8.0-fpm 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php8.0-gd 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 GD module for PHP
ii php8.0-gmp 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 GMP module for PHP
ii php8.0-igbinary 3.2.15-1+0~20231202.49+debian11~1.gbpe9ffe8 amd64 igbinary PHP serializer
ii php8.0-intl 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 Internationalisation module for PHP
ii php8.0-mbstring 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 MBSTRING module for PHP
ii php8.0-memcache 8.2-2+0~20231129.35+debian11~1.gbpbf55c7 amd64 memcache extension module for PHP
ii php8.0-memcached 3.2.0++-1+0~20231206.58+debian11~1.gbpd57e5e amd64 memcached extension module for PHP, uses libmemcached
ii php8.0-msgpack 1:2.2.0-4+0~20240706.42+debian11~1.gbpc6da00 amd64 PHP extension for interfacing with MessagePack
ii php8.0-mysql 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 MySQL module for PHP
ii php8.0-opcache 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 Zend OpCache module for PHP
ii php8.0-readline 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 readline module for PHP
ii php8.0-redis 6.0.2-1+0~20231128.56+debian11~1.gbp9f3071 amd64 PHP extension for interfacing with Redis
ii php8.0-ssh2 1.4.1-1+0~20240318.32+debian11~1.gbp6c05eb amd64 Bindings for the libssh2 library
ii php8.0-xml 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 DOM, SimpleXML, XML, and XSL module for PHP
ii php8.0-xsl 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 all XSL module for PHP (dummy)
ii php8.0-zip 1:8.0.30-7+0~20240606.65+debian11~1.gbpe57fd4 amd64 Zip module for PHP
And than I’ll doing following
pi@nextcloud:~$ php -v
PHP 8.0.30 (cli) (built: Jun 6 2024 16:44:55) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.30, Copyright (c) Zend Technologies
with Zend OPcache v8.0.30, Copyright (c), by Zend Technologies
pi@nextcloud:~$ sudo a2dismod mpm_prefork
Module mpm_prefork already disabled
pi@nextcloud:~$ a2dismod php7.4
Module php7.4 already disabled
pi@nextcloud:~$ a2enmod php8.0
Considering dependency mpm_prefork for php8.0:
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.0, aborting
pi@nextcloud:~$ sudo a2dismod mpm_event
Module mpm_event disabled.
To activate the new configuration, you need to run:
systemctl restart apache2
pi@nextcloud:~$ sudo a2enmod php8.0
Considering dependency mpm_prefork for php8.0:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Enabling module mpm_prefork.
**Considering conflict php5 for php8.0:**
Enabling module php8.0.
To activate the new configuration, you need to run:
systemctl restart apache2
pi@nextcloud:~$ sudo systemctl restart apache2.service
pi@nextcloud:~$ sudo systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2024-07-26 16:44:20 CEST; 1s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 26056 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 26060 (apache2)
Tasks: 11 (limit: 9379)
Memory: 18.0M
CPU: 110ms
CGroup: /system.slice/apache2.service
├─26060 /usr/sbin/apache2 -k start
├─26061 /usr/sbin/apache2 -k start
├─26062 /usr/sbin/apache2 -k start
├─26064 /usr/sbin/apache2 -k start
├─26066 /usr/sbin/apache2 -k start
└─26069 /usr/sbin/apache2 -k start
Jul 26 16:44:20 nextcloud systemd[1]: Starting The Apache HTTP Server
Jul 26 16:44:20 nextcloud systemd[1]: Started The Apache HTTP Server.
But NC say
Du verwendest im Moment PHP 7.4.33. Wir empfehlen ein Upgrade deiner PHP Version, um die Geschwindigkeits- und Sicherheitsupdates zu nutzen, welche von der PHP Gruppe bereitgestellt werden↗, sobald Deine Distribution diese unterstützt.
What’s going wrong? Where is my wrong understanding?
Greetings from the southwest of Germany
foggy