Nextcloud config updaten zu php7.1

ich habe das problem das ich nextcloud 13 habe aber upgraden will zu 14 ich habe dafĂŒr php 7 instaliert wie kann ich das jetzt nextcloud zu weißen da nextcloud noch meine alte php 5 version benutzt

du musst die php version in deinem webserver configurieren.

und wie mache ich das ?

das hÀngt von deine umgebung ab. eigener server oder webohosting?
und von deinem webserver. apache oder nginx?

ich habe einen eigenen Debian server mit apache2

ok. backup gemacht? falls was schief geht. :wink:

update von php: https://tecadmin.net/install-php-debian-9-stretch/

und dann

sudo a2dismod php5
sudo a2enmod php7.x

7.x entsprechend wÀhlen.

mh also wenn ich
sudo a2enmod php7.1 mache klappt das nicht dann steht da das ERROR: Module php does not exist!
ERROR: Module 7.1.26 does not exist! und wenn ich php -v mache kommt aber PHP 7.1.26-1+0~20190113101856.12+jessie~1.gbp7077bb (cli) (built: Jan 13 2019 15:14:34) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright © 1998-2018 Zend Technologies
with Zend OPcache v7.1.26-1+0~20190113101856.12+jessie~1.gbp7077bb, Copyright © 1999-2018, by Zend Technologies

libapache2-mod-php7.x installiert?

siehe: “Install Apache2, PHP and Redis-Server”
https://www.c-rieger.de/nextcloud-installation-guide-apache2/

habe libapache2-mod-php7.1 jetzt installiert und auch aktiviert aber wenn ich jetzt auf die seite von nextcloud gehe kommt das

  • @author Joas Schilling * @author Jörn Friedrich Dreyer * @author Lukas Reschke * @author Morris Jobke * @author Robin Appelman * @author Sergio Bertolín * @author Thomas MĂƒÂŒller * @author Vincent Petry * * @license AGPL-3.0 * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License, version 3, * along with this program. If not, see * */ require_once DIR . ‘/lib/versioncheck.php’; try { require_once DIR . ‘/lib/base.php’; OC::handleRequest(); } catch(\OC\ServiceUnavailableException $ex) { \OC::$server->getLogger()->logException($ex, array(‘app’ => ‘index’)); //show the user a detailed error page OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); OC_Template::printExceptionErrorPage($ex); } catch (\OC\HintException $ex) { OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); try { OC_Template::printErrorPage($ex->getMessage(), $ex->getHint()); } catch (Exception $ex2) { \OC::$server->getLogger()->logException($ex, array(‘app’ => ‘index’)); \OC::$server->getLogger()->logException($ex2, array(‘app’ => ‘index’)); //show the user a detailed error page OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); OC_Template::printExceptionErrorPage($ex); } } catch (\OC\User\LoginException $ex) { OC_Response::setStatus(OC_Response::STATUS_FORBIDDEN); OC_Template::printErrorPage($ex->getMessage(), $ex->getMessage()); } catch (Exception $ex) { \OC::$server->getLogger()->logException($ex, array(‘app’ => ‘index’)); //show the user a detailed error page OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); OC_Template::printExceptionErrorPage($ex); } catch (Error $ex) { try { \OC::$server->getLogger()->logException($ex, array(‘app’ => ‘index’)); } catch (Error $e) { $claimedProtocol = strtoupper($_SERVER[‘SERVER_PROTOCOL’]); $validProtocols = [ ‘HTTP/1.0’, ‘HTTP/1.1’, ‘HTTP/2’, ]; $protocol = ‘HTTP/1.1’; if(in_array($claimedProtocol, $validProtocols, true)) { $protocol = $claimedProtocol; } header($protocol . ’ 500 Internal Server Error’); header(‘Content-Type: text/plain; charset=utf-8’); print(“Internal Server Error\n\n”); print(“The server encountered an internal error and was unable to complete your request.\n”); print(“Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.\n”); print(“More details can be found in the webserver log.\n”); throw $e; } OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); OC_Template::printExceptionErrorPage($ex); }

apache error
schau mal, was in den logs vom apache steht.

ok wo finde ich die ?

/var/log/apache2 oder so.

ok ich schaue mal nach

ok und jetzt ? habe da mehrere dateien

da mĂŒsste es eine “error.log” und eine “access.log” geben. oder was mit error und nextcloud im namen. (ist konfigurierbar. und manchmal anders.)

tail -n 40 error.log
tail -n 40 access.log

oder in zwei ssh fenstern

tail -f error.log
tail -f access.log

und dann mal die nextcloud seite aufrufen. dann sollten eintrÀge in den logs erscheinen.

habe jetzt das problem das wenn ich auf die seite gehe da steht

Error

PHP module zip not installed.

Please ask your server administrator to install the module.

PHP modules have been installed, but they are still listed as missing?

Please ask your server administrator to restart the web server.