I updated to PHP 8.0 and killed my Nextcloud

Nextcloud version (eg, 20.0.5): 23.0.2
Operating system and version (eg, Ubuntu 20.04): Raspbian Buster
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4
PHP version (eg, 7.4): 8.0

First off, I’m a major amateur, trying to make a self hosted version of Nextcloud work. My apologies behorehand :slight_smile:

I was on PHP 7.3 when Nextcloud warned me it was time to update to PHP 8.0. So I did, via terminal.

Now, when I run php -v , I learn Raspbian has in fact switched to PHP 8.0. I suspect Nextcloud (or Apache??) are not?

When I go to https://MYDOMAIN.nl/nextcloud I get an ‘Internal Server Error’ without too many specifics.

I can’t seem to find what I did wrong and how to even start to repair it.
Thank you very much for any help.

Is this the first time you’ve seen this error? (Y/N): Yes

The output of your config.php file

<?php
$CONFIG = array (
  'instanceid' => 'XXX',
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' => 
  array (
    0 => '192.168.1.XXX',
    1 => 'XXXXXXXX.nl',
    2 => 'www.XXXXXXXXX.nl',
  ),
  'datadirectory' => '/mnt/dikzak/data',
  'dbtype' => 'mysql',
  'version' => '23.0.0.10',
  'overwrite.cli.url' => 'http://192.168.1.XXX/nextcloud',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'XXXXXXXXXX',
  'dbpassword' => 'XXXXXXXXX',
  'installed' => true,
  'memcache.local' => '\OC\Memcache\APCu',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

The output of your Apache/nginx/system log in /var/log/____:

[Thu Feb 17 15:52:18.211704 2022] [ssl:warn] [pid 1624] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Thu Feb 17 15:52:18.325251 2022] [ssl:warn] [pid 1625] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Thu Feb 17 15:52:18.344574 2022] [mpm_prefork:notice] [pid 1625] AH00163: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations

(post deleted by author)

Thank you for your reply. On first question: here is the output I’m getting /Danke für ihre Antwort. Am erste Frage: hier ist die output Ich bekomme

pi@raspberrypi:/var/www/nextcloud/config $ 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:
Module mpm_prefork already enabled
Considering conflict php5 for php8.0:
Module php8.0 already enabled

Second question: Yes, all PHP modules are installed. /Zweite Frage: Ja, alle PHP Module sind installiert.

remark

@anon96130297
Danke für deine Antwort… Aber es wird in allen mehrsprachigen Foren als unhöflich betrachtet, nicht in der Sprache des Threadstarters zu antworten.

hier hat es den Effekt, dass ich aufgrund der deutschen Antworten den Beitrag in das deutsche Subforum verschoben habe, wo er weit weniger Reichweite erhält… eben weil die Standardsprache Englisch ist… und so von mehr Benutzern gesehen wird.

Ich kann immer wieder nur jeden ermuntern, falls er/sie sich in einer Fremdsprache nicht wohlfühlt, einen online-Übersetzungsdienst (kostenlos) zu benutzen, das macht ein bisschen mehr Mühe aber die liefern gerade auf Englich relativ gute Ergebnisse.

Can you put it back for me in the English section?

1 Like

Have you also installed the php8.0 apache2 packages.
E.g. libapache2-mod-php8.0

Read e.g. this documentation.

I do not understand why a lot of admins uses old linux releases (buster) with new php versions (8.0). I think this is not an old Windows XP with the newest browser combination.

Why do you not upgrade to Debian Bullseye and use the standard PHP 7.4 in Bullseye?
I use on my installations only standard debian repositories.

Well, in his defense, the buster release of PiOS was fairly recent. Still, I agree, at the very least upgrade everything else before going to php-8.0.