# Nextcloud nicht mehr erreichbar nach apt autoremove php8.2

**URL:** <https://help.nextcloud.com/t/nextcloud-nicht-mehr-erreichbar-nach-apt-autoremove-php8-2/195850>\
**Category:** 🇩🇪 Deutsch (german)\
**Tags:** deutsch-german, php82, nas, synology, php83\
**Created:** [June 21, 2024, 4:24pm UTC](https://help.nextcloud.com/t/nextcloud-nicht-mehr-erreichbar-nach-apt-autoremove-php8-2/195850 "2024-06-21T16:24:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![CS6419](https://help.nextcloud.com/letter_avatar/cs6419/32/5_5575768a8748004e209b776fc1b2916d.png) [@CS6419](https://help.nextcloud.com/u/CS6419)\
**Post date:** [June 21, 2024, 4:24pm UTC](https://help.nextcloud.com/t/nextcloud-nicht-mehr-erreichbar-nach-apt-autoremove-php8-2/195850/1 "2024-06-21T16:24:39Z")

</div>

Hallo,

ich betreibe auf meiner Synology Diskstation eine Virtual Machine mit einem Server mit Ubuntu 22.04.4, auf dem eine Nextcloud 29.0.2.2 Instanz läuft. Bislang ohne Probleme.

Heute habe ich über die Konsole dummerweise mit “apt autoremove” verschiedene php8.2 Module deinstalliert, was zu einem “Internal Server Error” führte. Über das nextcloud.log konnte ich das fehlende php8.2-xml Modul identifizieren, nach dessen Re-Installation die Benutzeroberfläche wieder erschien und ich mich anmelden konnte.

In der Verwaltungsoberfläche wurden verschiedene Fehler u.a. weitere fehlende php Module angezeigt, die ich installierte: php8.2-bcmath php8.2-gmp php8.2-intl.

Zudem habe ich die OPCache Einstellungen wie vorher angepasst.

Leider kann ich nun die Nextcloud nicht mehr erreichen, es kommt die Meldung “Fehler: Verbindung fehlgeschlagen”, die Verbindung wird verweigert.

Diese php Module sind derzeit installiert:

```auto
ii libapache2-mod-php 2:8.3+94+ubuntu22.04.1+deb.sury.org+2 all server-side, HTML-embedded scripting language (Apache 2 module) (default)
rc libapache2-mod-php8.0 1:8.0.30-1+ubuntu22.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mod-php8.2 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mod-php8.3 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii php 2:8.3+94+ubuntu22.04.1+deb.sury.org+2 all server-side, HTML-embedded scripting language (default)
ii php-apcu 5.1.23-1+ubuntu22.04.1+deb.sury.org+1 amd64 APC User Cache for PHP
rc php-apcu-bc 1.0.5-2build1 amd64 APCu Backwards Compatibility Module
ii php-bcmath 2:8.3+94+ubuntu22.04.1+deb.sury.org+2 all Bcmath module for PHP [default]
ii php-bz2 2:8.3+94+ubuntu22.04.1+deb.sury.org+2 all bzip2 module for PHP [default]
ii php-common 2:94+ubuntu22.04.1+deb.sury.org+2 all Common files for PHP packages
ii php-curl 2:8.3+94+ubuntu22.04.1+deb.sury.org+2 all CURL module for PHP [default]
ii php-dompdf 0.6.2+dfsg-3.1ubuntu0.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 php-gd 2:8.3+94+ubuntu22.04.1+deb.sury.org+2 all GD module for PHP [default]
ii php-gmp 2:8.3+94+ubuntu22.04.1+deb.sury.org+2 all GMP module for PHP [default]
ii php-imagick 3.7.0-4+ubuntu22.04.1+deb.sury.org+2 amd64 Provides a wrapper to the ImageMagick library
ii php-intl 2:8.3+94+ubuntu22.04.1+deb.sury.org+2 all Internationalisation module for PHP [default]
ii php-mbstring 2:8.3+94+ubuntu22.04.1+deb.sury.org+2 all MBSTRING module for PHP [default]
ii php-mysql 2:8.3+94+ubuntu22.04.1+deb.sury.org+2 all MySQL module for PHP [default]
ii php-xml 2:8.3+94+ubuntu22.04.1+deb.sury.org+2 all DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
ii php-zip 2:8.3+94+ubuntu22.04.1+deb.sury.org+2 all Zip module for PHP [default]
ii php8.2 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 all server-side, HTML-embedded scripting language (metapackage)
ii php8.2-apcu 5.1.23-1+ubuntu22.04.1+deb.sury.org+1 amd64 APC User Cache for PHP
ii php8.2-bz2 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 amd64 bzip2 module for PHP
ii php8.2-cli 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 amd64 command-line interpreter for the PHP scripting language
ii php8.2-common 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 amd64 documentation, examples and common module for PHP
ii php8.2-curl 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 amd64 CURL module for PHP
ii php8.2-gd 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 amd64 GD module for PHP
rc php8.2-imagick 3.7.0-4+ubuntu22.04.1+deb.sury.org+2 amd64 Provides a wrapper to the ImageMagick library
ii php8.2-mbstring 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 amd64 MBSTRING module for PHP
ii php8.2-mysql 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 amd64 MySQL module for PHP
ii php8.2-opcache 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 amd64 Zend OpCache module for PHP
ii php8.2-phpdbg 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (PHPDBG binary)
ii php8.2-readline 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 amd64 readline module for PHP
ii php8.2-xml 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 amd64 DOM, SimpleXML, XML, and XSL module for PHP
ii php8.2-zip 8.2.20-2+ubuntu22.04.1+deb.sury.org+1 amd64 Zip module for PHP
ii php8.3 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 all server-side, HTML-embedded scripting language (metapackage)
ii php8.3-apcu 5.1.23-1+ubuntu22.04.1+deb.sury.org+1 amd64 APC User Cache for PHP
ii php8.3-bcmath 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 Bcmath module for PHP
ii php8.3-bz2 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 bzip2 module for PHP
ii php8.3-cli 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 command-line interpreter for the PHP scripting language
ii php8.3-common 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 documentation, examples and common module for PHP
ii php8.3-curl 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 CURL module for PHP
ii php8.3-gd 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 GD module for PHP
ii php8.3-gmp 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 GMP module for PHP
ii php8.3-imagick 3.7.0-4+ubuntu22.04.1+deb.sury.org+2 amd64 Provides a wrapper to the ImageMagick library
ii php8.3-intl 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 Internationalisation module for PHP
ii php8.3-mbstring 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 MBSTRING module for PHP
ii php8.3-mysql 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 MySQL module for PHP
ii php8.3-opcache 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 Zend OpCache module for PHP
ii php8.3-phpdbg 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (PHPDBG binary)
ii php8.3-readline 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 readline module for PHP
ii php8.3-xml 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 DOM, SimpleXML, XML, and XSL module for PHP
ii php8.3-zip 8.3.8-2+ubuntu22.04.1+deb.sury.org+1 amd64 Zip module for PHP

```

Und das ist die congig.php:

```php
<?php
$CONFIG = array (
  'instanceid' => 'oc62d8pumz1r',
  'passwordsalt' => '*',
  'secret' => '*',
  'trusted_domains' =>
  array (
    0 => 'URL',
  ),
  'datadirectory' => '/home/data/',
  'dbtype' => 'mysql',
  'version' => '29.0.2.2',
  'overwrite.cli.url' => 'URL',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouduser',
  'dbpassword' => '*',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'log_type' => 'file',
  'logfile' => '/var/www/nextcloud/data/nextcloud.log',
  'loglevel' => 3,
  'logdateformat' => 'F d, Y H:i:s',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_from_address' => '*',
  'mail_domain' => '*',
  'mail_smtphost' => '*',
  'mail_smtpport' => '465',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpname' => '*',
  'mail_smtppassword' => '*',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'updater.release.channel' => 'stable',
  'default_phone_region' => 'DE',
  'maintenance_window_start' => '1',
);

```

Eine Umstellung von php8.2 auf php8.2 und umgekehrt brachte keine Verbesserung.

Ich weiß mir keinen Rat mehr. In der Nextcloud.log werden keine Fehler abgelegt und auch in der error.log des apache2 nicht.

Kann mir hier jemand weiterhelfen?

VG

---

<div class="post-metadata">

**Author:** ![ernolf](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ernolf/32/77874_2.png) [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Post date:** [June 21, 2024, 4:38pm UTC](https://help.nextcloud.com/t/nextcloud-nicht-mehr-erreichbar-nach-apt-autoremove-php8-2/195850/2 "2024-06-21T16:38:34Z")

</div>

> [@CS6419](#):
>
> weitere fehlende php Module angezeigt, die ich installierte: php8.2-bcmath php8.2-gmp php8.2-intl

die sind in deiner Auflistung

> [@CS6419](#):
>
> Diese php Module sind derzeit installiert:

… jedoch nicht aufgelistet. Bitte einfach nachinstallieren mit

```sh
sudo apt-get install php8.2-{bcmath,gmp,intl}

```

* * *

> [@CS6419](#):
>
> Eine Umstellung von php8.2 auf php8.2 und umgekehrt brachte keine Verbesserung.

du meintest wohl 8.2 auf 8.3 und zurück?

* * *

Kannst du mal das [→ php-updater ←](https://help.nextcloud.com/t/php-updater-a-script-to-upgrade-php-in-a-safe-way/180215) Skript installieren

erst mal ohne Argumente laufen lassen:

```sh
php-updater

```

… und die Vorschläge zum aufräumen befolgen

und dann mit

```sh
php-updater --switch-version

```

die zu verwendete Version bestimmen.

Möglicherweise ist damit schon alles repariert.

* * *

Viel Glück,  
ernolf

---

<div class="post-metadata">

**Author:** ![ernolf](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ernolf/32/77874_2.png) [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Post date:** [June 21, 2024, 5:00pm UTC](https://help.nextcloud.com/t/nextcloud-nicht-mehr-erreichbar-nach-apt-autoremove-php8-2/195850/3 "2024-06-21T17:00:41Z")

</div>

Das fällt noch auf:

> [@CS6419](#):
>
> Diese php Module sind derzeit installiert:
> 
> ```auto
> //..//
> rc libapache2-mod-php8.0 1:8.0.30-1+ubuntu22.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
> //..//
> rc php-apcu-bc 1.0.5-2build1 amd64 APCu Backwards Compatibility Module
> //..//
> rc php8.2-imagick 3.7.0-4+ubuntu22.04.1+deb.sury.org+2 amd64 Provides a wrapper to the ImageMagick library
> //..//
> 
> ```

Diese Pakete sind zum entfernen markiert (siehe **`man dpkg-query`** ), also deine Liste stellt mitnichten die aktuell installierten Module dar.

* * *

ernolf

---

<div class="post-metadata">

**Author:** ![nc-kay](https://help.nextcloud.com/letter_avatar/nc-kay/32/5_5575768a8748004e209b776fc1b2916d.png) [@nc-kay](https://help.nextcloud.com/u/nc-kay)\
**Post date:** [June 21, 2024, 6:08pm UTC](https://help.nextcloud.com/t/nextcloud-nicht-mehr-erreichbar-nach-apt-autoremove-php8-2/195850/4 "2024-06-21T18:08:53Z")

</div>

[https://docs.nextcloud.com/server/latest/admin\_manual/installation/system\_requirements.html](https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html)

> PHP Runtime  
> 8.1 (deprecated)  
> 8.2  
> 8.3 (recommended)

Versuche es doch mal mit PHP 8.3 wie für Nextcloud 29 empfohlen.

---

<div class="post-metadata">

**Author:** ![Crashandy](https://help.nextcloud.com/user_avatar/help.nextcloud.com/crashandy/32/57998_2.png) [@Crashandy](https://help.nextcloud.com/u/Crashandy)\
**Post date:** [June 22, 2024, 8:03pm UTC](https://help.nextcloud.com/t/nextcloud-nicht-mehr-erreichbar-nach-apt-autoremove-php8-2/195850/5 "2024-06-22T20:03:24Z")

</div>

> [@nc-kay](#):
>
> Versuche es doch mal mit PHP 8.3 wie für Nextcloud 29 empfohlen.

Das ist falsch, denn PHP 8.3 wird erst ab Nextcloud 30 empfohlen.

Für Nextcloud 29 gilt noch immer diese Empfehlung:

> 8.0 (deprecated)  
> 8.1  
> 8.2 (recommended)  
> 8.3

[https://docs.nextcloud.com/server/29/admin\_manual/installation/system\_requirements.html](https://docs.nextcloud.com/server/29/admin_manual/installation/system_requirements.html)

---

<div class="post-metadata">

**Author:** ![CS6419](https://help.nextcloud.com/letter_avatar/cs6419/32/5_5575768a8748004e209b776fc1b2916d.png) [@CS6419](https://help.nextcloud.com/u/CS6419)\
**Post date:** [June 23, 2024, 9:20am UTC](https://help.nextcloud.com/t/nextcloud-nicht-mehr-erreichbar-nach-apt-autoremove-php8-2/195850/6 "2024-06-23T09:20:34Z")

</div>

Hallo zusammen,  
verstmal vielen Dank für die schnellen und hilfreichen Antworten!

Die Nextcloud ist wieder erreichbar. Ich hatte sukzessive die letzten Änderungen Änderungen, die unter “Verwaltungseinstellungen” empfohlen wurden, rückgängig gemacht. Nach Deaktivierung der OPCache Einstellungen in der config.php erschien wieder der Anmeldebildschirm und ich konnte mich anmelden.

Ich verstehe allerdings nicht, warum? Mit der Aktivierung der empfohlenen Einstellungen lief die Nextcloud vorhher einwandfrei. Nun leidet gefühlt die Performance mit der Deaktivierung, jedoch nehme ich das in erstmal in Kauf zugunsten der Erreichbarkeit.

Die Nextcloud lief vorher mit php8.3 ohne Probleme - von daher vesrtehe ich grundsätzlich nicht, warum die Deinstallation der php8.2 Module für so ein Chaos sorgte? Greift die Nextcloud trotzdem noch auf diese Pakete zu, obwohl php8.3 akiviert ist?

Ich werde mich morgen mal vorsichtig mit Euren obenstehenden Tips beschäftigen, in der Hoffnung die Performance wieder zu verbessern.

Nochmals vielen Dank für Eure Antworten!

---

<div class="post-metadata">

**Author:** ![nc-kay](https://help.nextcloud.com/letter_avatar/nc-kay/32/5_5575768a8748004e209b776fc1b2916d.png) [@nc-kay](https://help.nextcloud.com/u/nc-kay)\
**Post date:** [June 23, 2024, 3:02pm UTC](https://help.nextcloud.com/t/nextcloud-nicht-mehr-erreichbar-nach-apt-autoremove-php8-2/195850/7 "2024-06-23T15:02:48Z")

</div>

\*sorry  
Da habe ich mich vertan.

---

<div class="post-metadata">

**Author:** ![Mornsgrans](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mornsgrans/32/40386_2.png) [@Mornsgrans](https://help.nextcloud.com/u/Mornsgrans)\
**Post date:** [June 27, 2024, 5:29am UTC](https://help.nextcloud.com/t/nextcloud-nicht-mehr-erreichbar-nach-apt-autoremove-php8-2/195850/8 "2024-06-27T05:29:34Z")

</div>

> [@CS6419](#):
>
> Die Nextcloud lief vorher mit php8.3 ohne Probleme - von daher vesrtehe ich grundsätzlich nicht, warum die Deinstallation der php8.2 Module für so ein Chaos sorgte?

Zumindest liegt die Vermutung nahe.  
Als ich PHP von 7.4 auf 8.2 aktualisierte, kam es vor, dass einige PHP-Pakete von Hand nachinstalieren musste (PHP-Datenbankmodul).  
Außerdem waren in config.php und in den /etc/apache2/sites-enabled einige Anpassungen erforderlich.  
Dass a2dismod auf alte und a2enmod auf neue PHP-Module erforderlich waren, dürfte selbstredend sein.

> [@CS6419](#):
>
> Nach Deaktivierung der OPCache Einstellungen in der config.php erschien wieder der Anmeldebildschirm und ich konnte mich anmelden.

Dann würde ich mal an Deiner Stelle alles, was mit OPCache zusammenhängt, genauer anschauen. Besonders die Syntax in der config.php sorgt gerne für unerwünschte Reaktionen (Anzahl und Plazierung der "", Komma am Ende der Zeile etc.).

---

<div class="post-metadata">

**Author:** ![CS6419](https://help.nextcloud.com/letter_avatar/cs6419/32/5_5575768a8748004e209b776fc1b2916d.png) [@CS6419](https://help.nextcloud.com/u/CS6419)\
**Post date:** [June 28, 2024, 9:27am UTC](https://help.nextcloud.com/t/nextcloud-nicht-mehr-erreichbar-nach-apt-autoremove-php8-2/195850/9 "2024-06-28T09:27:02Z")

</div>

Hallo zusammen,

habe den Fehler jetzt gefunden: Ich hatte bei opcache.interned\_strings\_buffer wohl zuviel vorgesehen mit =128.

Mit opcache.interned\_strings\_buffer=32 funktioniert alles wieder einwandfrei.

Danke für die Hinweise und Eure Hilfe!

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [June 7, 2025, 5:14pm UTC](https://help.nextcloud.com/t/nextcloud-nicht-mehr-erreichbar-nach-apt-autoremove-php8-2/195850/10 "2025-06-07T17:14:39Z")

</div>


