# Nextcloud nach PHP Update von 7.2 auf 7.4 nicht mehr erreichbar

**URL:** <https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960>\
**Category:** 🇩🇪 Deutsch (german)\
**Tags:** php71\
**Created:** [October 12, 2020, 6:04pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960 "2020-10-12T18:04:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr.Heisenberg](https://help.nextcloud.com/letter_avatar/mr.heisenberg/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mr.Heisenberg](https://help.nextcloud.com/u/Mr.Heisenberg)\
**Post date:** [October 12, 2020, 6:04pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/1 "2020-10-12T18:04:54Z")

</div>

Hey,  
ich habe gerade ein Nextcloud PHP 7.2 auf 7.4 eingespielt. Nach dem Neustart kann ich die Nextcloud nicht mehr erreichen. Es erscheint die Meldung.

 ![Unbenannt](https://help.nextcloud.com/uploads/default/original/3X/4/d/4d4ec310a855721b48d4cbf6983a503038fdddae.png)

Kann mir jemand weiterhelfen?

---

<div class="post-metadata">

**Author:** ![Belgeron](https://help.nextcloud.com/letter_avatar/belgeron/32/5_5575768a8748004e209b776fc1b2916d.png) [@Belgeron](https://help.nextcloud.com/u/Belgeron)\
**Post date:** [October 12, 2020, 6:38pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/2 "2020-10-12T18:38:24Z")

</div>

Was für ein PHP verwendest du denn? mod\_php, php-fpm ?  
Steht was im apache error log ?

---

<div class="post-metadata">

**Author:** ![smeijer](https://help.nextcloud.com/user_avatar/help.nextcloud.com/smeijer/32/18222_2.png) [@smeijer](https://help.nextcloud.com/u/smeijer)\
**Post date:** [October 12, 2020, 7:09pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/3 "2020-10-12T19:09:27Z")

</div>

Ich hatte die gleiche Meldung (aber die Meldung ist so generisch, dass das nicht wirklich aussagekräftig ist). Schaue mal hier ob das etwas bringt: [Can't get the upgrade from php7.2 to php7.4 to work](https://help.nextcloud.com/t/cant-get-the-upgrade-from-php7-2-to-php7-4-to-work/85075/8)

---

<div class="post-metadata">

**Author:** ![Mr.Heisenberg](https://help.nextcloud.com/letter_avatar/mr.heisenberg/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mr.Heisenberg](https://help.nextcloud.com/u/Mr.Heisenberg)\
**Post date:** [October 12, 2020, 7:25pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/4 "2020-10-12T19:25:35Z")

</div>

Es müsste php-fpm sein

Im error log steht.

[Mon Oct 12 21:06:31.845854 2020] [proxy:error] [pid 7309] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (_) failed  
[Mon Oct 12 21:06:31.845899 2020] [proxy\_fcgi:error] [pid 7309] [client 10.14.11.1:43170] AH01079: failed to make connection to backend: httpd-UDS  
[Mon Oct 12 21:07:27.465445 2020] [mpm\_prefork:notice] [pid 7304] AH00169: caught SIGTERM, shutting down  
[Mon Oct 12 21:07:57.093512 2020] [ssl:warn] [pid 1936] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name  
[Mon Oct 12 21:07:57.234255 2020] [ssl:warn] [pid 1962] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name  
[Mon Oct 12 21:07:57.234331 2020] [http2:warn] [pid 1962] AH10034: The mpm module (prefork.c) is not supported by mod\_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.  
[Mon Oct 12 21:07:59.543162 2020] [mpm\_prefork:notice] [pid 1962] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured – resuming normal operations  
[Mon Oct 12 21:07:59.543204 2020] [core:notice] [pid 1962] AH00094: Command line: ‘/usr/sbin/apache2’  
[Mon Oct 12 21:10:25.718450 2020] [proxy:error] [pid 2009] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (_) failed  
[Mon Oct 12 21:10:25.718508 2020] [proxy\_fcgi:error] [pid 2009] [client 10.14.11.1:43173] AH01079: failed to make connection to backend: httpd-UDS  
[Mon Oct 12 21:10:27.391956 2020] [proxy:error] [pid 2016] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (_) failed  
[Mon Oct 12 21:10:27.392002 2020] [proxy\_fcgi:error] [pid 2016] [client 10.14.11.1:43174] AH01079: failed to make connection to backend: httpd-UDS  
[Mon Oct 12 21:19:50.671589 2020] [proxy:error] [pid 2022] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (_) failed  
[Mon Oct 12 21:19:50.671660 2020] [proxy\_fcgi:error] [pid 2022] [client 10.14.11.1:43180] AH01079: failed to make connection to backend: httpd-UDS

---

<div class="post-metadata">

**Author:** ![smeijer](https://help.nextcloud.com/user_avatar/help.nextcloud.com/smeijer/32/18222_2.png) [@smeijer](https://help.nextcloud.com/u/smeijer)\
**Post date:** [October 12, 2020, 7:45pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/5 "2020-10-12T19:45:49Z")

</div>

Was ist konfiguriert in /etc/apache2/sites-enabled/nextcloud…conf?

```
<FilesMatch "\.php$">
    SetHandler "proxy:unix:/run/php/php7.4-fpm.nextcloud.sock|fcgi://localhost"
</FilesMatch>

```

Was ist output von “php -version”?

PHP 7.4.8 (cli) (built: Jul 13 2020 16:46:22) ( NTS )  
Copyright © The PHP Group  
Zend Engine v3.4.0, Copyright © Zend Technologies  
with Zend OPcache v7.4.8, Copyright ©, by Zend Technologies

Was sagt: service php7.4-fpm status?

---

<div class="post-metadata">

**Author:** ![Mr.Heisenberg](https://help.nextcloud.com/letter_avatar/mr.heisenberg/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mr.Heisenberg](https://help.nextcloud.com/u/Mr.Heisenberg)\
**Post date:** [October 13, 2020, 6:38pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/6 "2020-10-13T18:38:11Z")

</div>

In /etc/apache2/sites-enabled/nextcloud…conf steht

> \<FilesMatch “.php$”\>  
> SetHandler “proxy:unix:/run/php/php7.2-fpm.nextcloud.sock|fcgi://localhost”  
> /FilesMatch\>

Was ist output von “php -version”?

![2468](https://help.nextcloud.com/uploads/default/original/3X/6/8/6848a6edb0419c2e780304c5bf399fa7db573062.png)

Was sagt: service php7.4-fpm status?  
 ![123](https://help.nextcloud.com/uploads/default/original/3X/e/7/e7f4dd5db5f53ba2022400fe74fd3e90add36859.png)

Hoffe die Angaben sind so richtig 😉

---

<div class="post-metadata">

**Author:** ![smeijer](https://help.nextcloud.com/user_avatar/help.nextcloud.com/smeijer/32/18222_2.png) [@smeijer](https://help.nextcloud.com/u/smeijer)\
**Post date:** [October 13, 2020, 6:53pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/7 "2020-10-13T18:53:00Z")

</div>

OK, Nextcloud verwendet also noch PHP 7.2 (wegen nextcloud…conf).

Kannst du mal schauen ob dann service php7.2-fpm läuft?  
service php7.2-fpm status

Was hast du alles in /etc/php für ordner?

---

<div class="post-metadata">

**Author:** ![Mr.Heisenberg](https://help.nextcloud.com/letter_avatar/mr.heisenberg/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mr.Heisenberg](https://help.nextcloud.com/u/Mr.Heisenberg)\
**Post date:** [October 13, 2020, 7:04pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/8 "2020-10-13T19:04:58Z")

</div>

Unter /etc/php liegen diese Ordner ab

![246](https://help.nextcloud.com/uploads/default/original/3X/a/f/afabfd033530969a5efa9fdfda1d8dcb63cae430.png)

Kann es sein, dass der Service php7.2 überhaupt nicht läuft ?

![1234](https://help.nextcloud.com/uploads/default/original/3X/0/4/042ae50fde2d6036a0201b25009370d7a7c2d5f2.png)

So wie es aussieht, wurde zwar php 7.4 installiert, aber keine php Version läuft?!

---

<div class="post-metadata">

**Author:** ![anon71540698](https://help.nextcloud.com/letter_avatar/anon71540698/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon71540698](https://help.nextcloud.com/u/anon71540698)\
**Post date:** [October 13, 2020, 7:17pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/9 "2020-10-13T19:17:01Z")

</div>

> [@Mr.Heisenberg](#):
>
> ![1234](https://help.nextcloud.com/uploads/default/original/3X/0/4/042ae50fde2d6036a0201b25009370d7a7c2d5f2.png)

Was sein muss

 ![image](https://help.nextcloud.com/uploads/default/original/3X/a/b/ab3b2fafc97d50c113a28a3306c6b5afb52c1f91.png)

Versuche

![image](https://help.nextcloud.com/uploads/default/original/3X/2/a/2aaa1683c5c04dfa017ea816f8d6ce77dfb1764d.png)

> [@Mr.Heisenberg](#):
>
> ich habe gerade ein Nextcloud PHP 7.2 auf 7.4 eingespielt.

**Wie** hast du es gemacht?

---

<div class="post-metadata">

**Author:** ![Mr.Heisenberg](https://help.nextcloud.com/letter_avatar/mr.heisenberg/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mr.Heisenberg](https://help.nextcloud.com/u/Mr.Heisenberg)\
**Post date:** [October 13, 2020, 7:30pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/10 "2020-10-13T19:30:51Z")

</div>

Habe die Installation gerade versucht

 ![987](https://help.nextcloud.com/uploads/default/original/3X/f/9/f9f0e87245285e564224daba147a8af38f535eb0.png)

Ich bin nach dieser Anleitung im Netz vorgegangen

[https://pastebin.com/e5yY80Hy](https://pastebin.com/e5yY80Hy)

Dabei muss ich irgendwas falsch gemacht haben

---

<div class="post-metadata">

**Author:** ![anon71540698](https://help.nextcloud.com/letter_avatar/anon71540698/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon71540698](https://help.nextcloud.com/u/anon71540698)\
**Post date:** [October 13, 2020, 7:35pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/11 "2020-10-13T19:35:22Z")

</div>

Läuft es jetzt?

---

<div class="post-metadata">

**Author:** ![Mr.Heisenberg](https://help.nextcloud.com/letter_avatar/mr.heisenberg/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mr.Heisenberg](https://help.nextcloud.com/u/Mr.Heisenberg)\
**Post date:** [October 13, 2020, 7:50pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/12 "2020-10-13T19:50:35Z")

</div>

> Läuft es jetzt?

Leider noch nicht

---

<div class="post-metadata">

**Author:** ![smeijer](https://help.nextcloud.com/user_avatar/help.nextcloud.com/smeijer/32/18222_2.png) [@smeijer](https://help.nextcloud.com/u/smeijer)\
**Post date:** [October 13, 2020, 8:05pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/13 "2020-10-13T20:05:17Z")

</div>

Hast du /etc/php/7.2/fpm/pool.d/nextcloud.conf auf /etc/php/7.4/fpm/pool.d/nextcloud.conf kopiert?  
Nachher in nextcloud.conf Einträge mit 7.2 ändern in 7.4

---

<div class="post-metadata">

**Author:** ![Mr.Heisenberg](https://help.nextcloud.com/letter_avatar/mr.heisenberg/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mr.Heisenberg](https://help.nextcloud.com/u/Mr.Heisenberg)\
**Post date:** [October 13, 2020, 8:09pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/14 "2020-10-13T20:09:47Z")

</div>

Nein, da habe ich nichts angepasst. Wie meinst du das ?

---

<div class="post-metadata">

**Author:** ![smeijer](https://help.nextcloud.com/user_avatar/help.nextcloud.com/smeijer/32/18222_2.png) [@smeijer](https://help.nextcloud.com/u/smeijer)\
**Post date:** [October 13, 2020, 8:14pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/15 "2020-10-13T20:14:10Z")

</div>

Apache wird dann jetzt neu 7.4 verwenden wollen (wegen Eintrag in **/etc/apache2/sites-enabled/nextcloud…conf** ).

```
<FilesMatch "\.php$">
    SetHandler "proxy:unix:/run/php/php7.4-fpm.nextcloud.sock|fcgi://localhost"
</FilesMatch>

```

PHP 7.4 muss dann ein socket haben, damit die 2 mit einander reden können.

**In /etc/php/7.4/fpm/pool.d/nextcloud.conf:**

```
root@lin-nextcloud:/etc/php/7.4/fpm/pool.d# more nextcloud.conf
[Nextcloud]
user = www-data
group = www-data
listen = /run/php/php"7.4"-fpm.nextcloud.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
pm = dynamic
; max_children is set dynamically with calculate_php_fpm()
pm.max_children = 65
pm.start_servers = 12
pm.min_spare_servers = 6
pm.max_spare_servers = 35
env[HOSTNAME] = lin-nextcloud
env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
security.limit_extensions = .php
php_admin_value [cgi.fix_pathinfo] = 1

; Optional
; pm.max_requests = 2000

```

Nach anpassen muss php7.4-fpm service neu gestartet werden

`service php7.4-fpm restart`

---

<div class="post-metadata">

**Author:** ![Mr.Heisenberg](https://help.nextcloud.com/letter_avatar/mr.heisenberg/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mr.Heisenberg](https://help.nextcloud.com/u/Mr.Heisenberg)\
**Post date:** [October 13, 2020, 8:23pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/16 "2020-10-13T20:23:05Z")

</div>

Die habe ich nicht

![567](https://help.nextcloud.com/uploads/default/original/3X/8/d/8d6f1da18242b6e4af8902a2d395571f96c84554.png)

---

<div class="post-metadata">

**Author:** ![smeijer](https://help.nextcloud.com/user_avatar/help.nextcloud.com/smeijer/32/18222_2.png) [@smeijer](https://help.nextcloud.com/u/smeijer)\
**Post date:** [October 13, 2020, 8:24pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/17 "2020-10-13T20:24:57Z")

</div>

Es sollte eine geben in /etc/php/7.2/fpm/pool.d

Diese musst du auf /etc/php/7.4/fpm/pool.d kopieren und dann Inhalt anpassen

---

<div class="post-metadata">

**Author:** ![Mr.Heisenberg](https://help.nextcloud.com/letter_avatar/mr.heisenberg/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mr.Heisenberg](https://help.nextcloud.com/u/Mr.Heisenberg)\
**Post date:** [October 13, 2020, 8:38pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/18 "2020-10-13T20:38:56Z")

</div>

Über WinSCP lässt die Datei sich nicht kopieren, wie würde der Befehl über Putty lauten?

---

<div class="post-metadata">

**Author:** ![smeijer](https://help.nextcloud.com/user_avatar/help.nextcloud.com/smeijer/32/18222_2.png) [@smeijer](https://help.nextcloud.com/u/smeijer)\
**Post date:** [October 13, 2020, 9:02pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/19 "2020-10-13T21:02:57Z")

</div>

`cp -p /etc/php/7.2/fpm/pool.d/nextcloud.conf /etc/php/7.4/fpm/pool.d`

---

<div class="post-metadata">

**Author:** ![Mr.Heisenberg](https://help.nextcloud.com/letter_avatar/mr.heisenberg/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mr.Heisenberg](https://help.nextcloud.com/u/Mr.Heisenberg)\
**Post date:** [October 13, 2020, 10:19pm UTC](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960/20 "2020-10-13T22:19:27Z")

</div>

Jetzt bin ich etwas weiter, beim aufrufen von

> service php7.4-fpm status

sieht es jetzt so aus

 ![567](https://help.nextcloud.com/uploads/default/original/3X/d/9/d9a33a4de4d57806050f7b563c77be2a0b6f7738.png)

Aber erreichbar ist die Nextcloud weiterhin nicht ?!

[Next page](https://help.nextcloud.com/t/nextcloud-nach-php-update-von-7-2-auf-7-4-nicht-mehr-erreichbar/94960.md?page=2)
