Nach Ubuntu Update wird eine PHP Meldung gezeigt

ArrorRT

Lieutenant
Registriert
Jan. 2021
Beiträge
868
Hallo,

nach dem ich von auf Ubuntu 22.04.1 LTS upgedatet habe, wird mir eine PHP Meldung anstatt meiner Nextcloud gezeigt.

Erst hatte mein Apachen2 einen Fehler und konnte nicht starten, das habe ich durch eine Neuinstallation behoben und diesen neu konfiguriert.

Jetzt funktioniert er wieder, aber zeigt nicht auf Nextcloud.
Ich kann den Server per IP erreichen, aber aus dem Netz ist er nicht mehr erreichbar.

PHP Fehlermeldung:

Code:
<?php
/**
 * @copyright Copyright (c) 2016, ownCloud, Inc.
 *
 * @author Christoph Wurst <christoph@winzerhof-wurst.at>
 * @author Joas Schilling <coding@schilljs.com>
 * @author Jörn Friedrich Dreyer <jfd@butonic.de>
 * @author Lukas Reschke <lukas@statuscode.ch>
 * @author Morris Jobke <hey@morrisjobke.de>
 * @author Robin Appelman <robin@icewind.nl>
 * @author Roeland Jago Douma <roeland@famdouma.nl>
 * @author Sergio BertolÃn <sbertolin@solidgear.es>
 * @author Thomas Müller <thomas.mueller@tmit.eu>
 * @author Vincent Petry <vincent@nextcloud.com>
 *
 * @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 <http://www.gnu.org/licenses/>
 *
 */
require_once __DIR__ . '/lib/versioncheck.php';

try {
    require_once __DIR__ . '/lib/base.php';

    OC::handleRequest();
} catch (\OC\ServiceUnavailableException $ex) {
    \OC::$server->getLogger()->logException($ex, ['app' => 'index']);

    //show the user a detailed error page
    OC_Template::printExceptionErrorPage($ex, 503);
} catch (\OCP\HintException $ex) {
    try {
        OC_Template::printErrorPage($ex->getMessage(), $ex->getHint(), 503);
    } catch (Exception $ex2) {
        try {
            \OC::$server->getLogger()->logException($ex, ['app' => 'index']);
            \OC::$server->getLogger()->logException($ex2, ['app' => 'index']);
        } catch (Throwable $e) {
            // no way to log it properly - but to avoid a white page of death we try harder and ignore this one here
        }

        //show the user a detailed error page
        OC_Template::printExceptionErrorPage($ex, 500);
    }
} catch (\OC\User\LoginException $ex) {
    $request = \OC::$server->getRequest();
    /**
     * Routes with the @CORS annotation and other API endpoints should
     * not return a webpage, so we only print the error page when html is accepted,
     * otherwise we reply with a JSON array like the SecurityMiddleware would do.
     */
    if (stripos($request->getHeader('Accept'), 'html') === false) {
        http_response_code(401);
        header('Content-Type: application/json; charset=utf-8');
        echo json_encode(['message' => $ex->getMessage()]);
        exit();
    }
    OC_Template::printErrorPage($ex->getMessage(), $ex->getMessage(), 401);
} catch (Exception $ex) {
    \OC::$server->getLogger()->logException($ex, ['app' => 'index']);

    //show the user a detailed error page
    OC_Template::printExceptionErrorPage($ex, 500);
} catch (Error $ex) {
    try {
        \OC::$server->getLogger()->logException($ex, ['app' => 'index']);
    } catch (Error $e) {
        http_response_code(500);
        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 $ex;
    }
    OC_Template::printExceptionErrorPage($ex, 500);
}
 
welche php version auf welche?
reverse proxy und nextcloud config angepasst?
was steht in den php / apache /nextcloud logs?
nutzt du php fpm?
...
 
@madmax2010 PHP habe ich nicht upgedatet, sondern Ubuntu
und ich nutze PHP 8.0
ich nutze keinen Proxy
wie kann ich das Log auslesen?
nein
 
Es handelt sich hier nicht um eine PHP-Fehlermeldung sondern um PHP-Code. Daher gehe ich davon aus, dass etwas mit deinen PHP Einstellungen nicht stimmt. Wahrscheinlich musst du die neue PHP Version sauber installieren und die Module in Apache aktivieren. Das würde auch zu deiner Apache Neuinstallation passen.

Wenn man deine "Fehlermeldung" aber bei Google eingibt, erscheinen ein paar sinnvoll aussehende Lösungsvorschläge, auch wenn diese ältere Versionen betreffen.
 
Das ist keine "Fehlermeldung", das ist der Quelltext. Dein PHP läuft also nicht mehr. Wenn du in irgend einer config.php Zugangsdaten liegen hast, würde ich die mal fix offline nehmen.
 
  • Gefällt mir
Reaktionen: nkler
ArrorRT schrieb:
welche pakete wurden beim upgraden von ubuntu auf welche version angehoben?
Nebenher:
Update -> Information dazu, dass eine neue Version einer Software existiert
Upgrade -> Installation der neuen paketversion

zeig doch mal die apaxche config und beschreib deinen nextcloud stack..

ArrorRT schrieb:
wie kann ich das Log auslesen?
wo das nextcloud log liegt hast du selbst eingestellt. Apache findest du vermutlich in /var/log - php logs ebenso
 
Äh nach einem Neustart kommt jetzt das

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
 
P54CS schrieb:
/var/log/apache2/error.log
am einfachsten

journalctl -n 200 -f -u apache2

journalctl -n 200 -f -u php8.0-fpm

Aaber, dass klingt direkt nach einem nextcloud error. Daher wirst du wohl in der nextcloud config nachsehen muessen, wo das nextcloud log liegt..

@ArrorRT versuch doch bitte wenigstens manche der fragen teilweise zu beantworten. Die Informationsdecke ist unglaublich dünn.
Vermutlich haette es in deiner reverse proxy config genügt den handler anzupassen..
 
Apache Log

Code:
Aug 11 00:01:00 nextcloud systemd[1]: Reloading The Apache HTTP Server.
Aug 11 00:01:00 nextcloud apachectl[201507]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 11 00:01:00 nextcloud systemd[1]: Reloaded The Apache HTTP Server.
Aug 12 00:00:02 nextcloud systemd[1]: Reloading The Apache HTTP Server.
Aug 12 00:00:02 nextcloud apachectl[225424]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 12 00:00:02 nextcloud systemd[1]: Reloaded The Apache HTTP Server.
Aug 13 00:00:02 nextcloud systemd[1]: Reloading The Apache HTTP Server.
Aug 13 00:00:02 nextcloud apachectl[235946]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 13 00:00:02 nextcloud systemd[1]: Reloaded The Apache HTTP Server.
Aug 14 00:00:01 nextcloud systemd[1]: Reloading The Apache HTTP Server.
Aug 14 00:00:01 nextcloud apachectl[245042]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 00:00:01 nextcloud systemd[1]: Reloaded The Apache HTTP Server.
Aug 14 18:46:06 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 18:46:07 nextcloud apachectl[271909]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 18:46:07 nextcloud systemd[1]: apache2.service: Succeeded.
Aug 14 18:46:07 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 18:46:07 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 18:46:07 nextcloud apachectl[271921]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 18:46:07 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 19:12:48 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 19:12:48 nextcloud apachectl[351538]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory
Aug 14 19:12:48 nextcloud apachectl[351536]: Action 'graceful-stop' failed.
Aug 14 19:12:48 nextcloud apachectl[351536]: The Apache error log may have more information.
Aug 14 19:12:48 nextcloud systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Aug 14 19:12:51 nextcloud systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 14 19:12:51 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 19:12:51 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 19:12:51 nextcloud apachectl[351547]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory
Aug 14 19:12:51 nextcloud apachectl[351544]: Action 'start' failed.
Aug 14 19:12:51 nextcloud apachectl[351544]: The Apache error log may have more information.
Aug 14 19:12:51 nextcloud systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Aug 14 19:12:51 nextcloud systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 14 19:12:51 nextcloud systemd[1]: Failed to start The Apache HTTP Server.
-- Boot 1ae79c782caf4a01ab78663827d6f474 --
Aug 14 19:18:37 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 19:18:40 nextcloud apachectl[752]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory
Aug 14 19:18:40 nextcloud apachectl[710]: Action 'start' failed.
Aug 14 19:18:40 nextcloud apachectl[710]: The Apache error log may have more information.
Aug 14 19:18:40 nextcloud systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Aug 14 19:18:40 nextcloud systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 14 19:18:40 nextcloud systemd[1]: Failed to start The Apache HTTP Server.
-- Boot e17a0944d7b744e7aaab8fc57fd64cd7 --
Aug 14 20:02:05 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 20:02:09 nextcloud apachectl[771]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory
Aug 14 20:02:09 nextcloud apachectl[714]: Action 'start' failed.
Aug 14 20:02:09 nextcloud apachectl[714]: The Apache error log may have more information.
Aug 14 20:02:09 nextcloud systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Aug 14 20:02:09 nextcloud systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 14 20:02:09 nextcloud systemd[1]: Failed to start The Apache HTTP Server.
-- Boot c01905d721d146989e6c14aee88fa6d0 --
Aug 14 20:10:19 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 20:10:22 nextcloud apachectl[755]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory
Aug 14 20:10:22 nextcloud apachectl[710]: Action 'start' failed.
Aug 14 20:10:22 nextcloud apachectl[710]: The Apache error log may have more information.
Aug 14 20:10:22 nextcloud systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Aug 14 20:10:22 nextcloud systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 14 20:10:22 nextcloud systemd[1]: Failed to start The Apache HTTP Server.
Aug 14 22:08:04 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 22:08:04 nextcloud apachectl[3244]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory
Aug 14 22:08:04 nextcloud apachectl[3241]: Action 'start' failed.
Aug 14 22:08:04 nextcloud apachectl[3241]: The Apache error log may have more information.
Aug 14 22:08:04 nextcloud systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Aug 14 22:08:04 nextcloud systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 14 22:08:04 nextcloud systemd[1]: Failed to start The Apache HTTP Server.
Aug 14 22:09:04 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 22:09:04 nextcloud apachectl[3299]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory
Aug 14 22:09:04 nextcloud apachectl[3296]: Action 'start' failed.
Aug 14 22:09:04 nextcloud apachectl[3296]: The Apache error log may have more information.
Aug 14 22:09:04 nextcloud systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Aug 14 22:09:04 nextcloud systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 14 22:09:04 nextcloud systemd[1]: Failed to start The Apache HTTP Server.
Aug 14 22:10:53 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 22:10:53 nextcloud apachectl[3724]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory
Aug 14 22:10:53 nextcloud apachectl[3720]: Action 'start' failed.
Aug 14 22:10:53 nextcloud apachectl[3720]: The Apache error log may have more information.
Aug 14 22:10:53 nextcloud systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Aug 14 22:10:53 nextcloud systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 14 22:10:53 nextcloud systemd[1]: Failed to start The Apache HTTP Server.
Aug 14 22:11:44 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 22:11:44 nextcloud apachectl[3822]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory
Aug 14 22:11:44 nextcloud apachectl[3819]: Action 'start' failed.
Aug 14 22:11:44 nextcloud apachectl[3819]: The Apache error log may have more information.
Aug 14 22:11:44 nextcloud systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Aug 14 22:11:44 nextcloud systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 14 22:11:44 nextcloud systemd[1]: Failed to start The Apache HTTP Server.
Aug 14 22:12:00 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 22:12:00 nextcloud apachectl[3932]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory
Aug 14 22:12:00 nextcloud apachectl[3929]: Action 'start' failed.
Aug 14 22:12:00 nextcloud apachectl[3929]: The Apache error log may have more information.
Aug 14 22:12:00 nextcloud systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Aug 14 22:12:00 nextcloud systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 14 22:12:00 nextcloud systemd[1]: Failed to start The Apache HTTP Server.
Aug 14 22:15:57 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 22:15:58 nextcloud apachectl[4776]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 22:15:58 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 22:17:06 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 22:17:06 nextcloud apachectl[5089]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 22:17:06 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 22:17:06 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 22:17:06 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 22:17:06 nextcloud apachectl[5095]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 22:17:06 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 22:36:56 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 22:36:56 nextcloud apachectl[13548]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 22:36:56 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 22:36:56 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 22:36:56 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 22:36:56 nextcloud apachectl[13554]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 22:36:56 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 22:39:34 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 22:39:34 nextcloud apachectl[13878]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 22:39:34 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 22:39:34 nextcloud systemd[1]: Stopped The Apache HTTP Server.
-- Boot 010d806a0b2d463ca8a2c2204a954cc5 --
Aug 14 22:40:16 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 22:40:26 nextcloud apachectl[759]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 22:40:26 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 23:09:15 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 23:09:15 nextcloud apachectl[14978]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:09:18 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 23:09:18 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 23:09:18 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 23:09:18 nextcloud apachectl[14985]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:09:18 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 23:09:18 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 23:09:18 nextcloud apachectl[15019]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:09:18 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 23:09:18 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 23:09:18 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 23:09:18 nextcloud apachectl[15025]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:09:18 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 23:09:20 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 23:09:20 nextcloud apachectl[15099]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:09:20 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 23:09:20 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 23:09:20 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 23:09:20 nextcloud apachectl[15105]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:09:20 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 23:09:54 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 23:09:54 nextcloud apachectl[15215]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:09:54 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 23:09:54 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 23:09:54 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 23:09:54 nextcloud apachectl[15221]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:09:54 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 23:10:24 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 23:10:24 nextcloud apachectl[16306]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:10:24 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 23:10:24 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 23:10:24 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 23:10:24 nextcloud apachectl[16312]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:10:24 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 23:12:47 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 23:12:47 nextcloud apachectl[25648]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:12:47 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 23:12:47 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 23:12:47 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 23:12:47 nextcloud apachectl[25655]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:12:47 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 23:14:27 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 23:14:27 nextcloud apachectl[25787]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:14:27 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 23:14:27 nextcloud systemd[1]: Stopped The Apache HTTP Server.
-- Boot 5e64d4d850744e54b870802066d70df7 --
Aug 14 23:15:15 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 23:15:21 nextcloud apachectl[770]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:15:21 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 23:19:01 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 23:19:01 nextcloud apachectl[3716]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:19:01 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 23:19:01 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 23:19:01 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 23:19:01 nextcloud apachectl[3722]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:19:01 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 23:19:02 nextcloud systemd[1]: Reloading The Apache HTTP Server...
Aug 14 23:19:02 nextcloud apachectl[4596]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:19:02 nextcloud systemd[1]: Reloaded The Apache HTTP Server.
Aug 14 23:22:22 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 23:22:22 nextcloud apachectl[20449]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:22:22 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 23:22:22 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 23:22:22 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 23:22:22 nextcloud apachectl[20455]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:22:22 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 23:22:37 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 23:22:37 nextcloud apachectl[20520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:22:38 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 23:22:38 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 23:22:38 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 23:22:38 nextcloud apachectl[20526]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:22:38 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 23:25:03 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 23:25:03 nextcloud apachectl[30387]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:25:03 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 23:25:03 nextcloud systemd[1]: Stopped The Apache HTTP Server.
Aug 14 23:25:03 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 23:25:03 nextcloud apachectl[30394]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:25:03 nextcloud systemd[1]: Started The Apache HTTP Server.
Aug 14 23:27:28 nextcloud systemd[1]: Stopping The Apache HTTP Server...
Aug 14 23:27:28 nextcloud apachectl[30527]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:27:29 nextcloud systemd[1]: apache2.service: Deactivated successfully.
Aug 14 23:27:29 nextcloud systemd[1]: Stopped The Apache HTTP Server.
-- Boot 7fc2f55f42f3496cb35ff98f4b0d9718 --
Aug 14 23:28:10 nextcloud systemd[1]: Starting The Apache HTTP Server...
Aug 14 23:28:15 nextcloud apachectl[744]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Aug 14 23:28:15 nextcloud systemd[1]: Started The Apache HTTP Server.
 
da hab ich zu lahm editiert :)
joa, wie zu erwarten, der fehler ist nextcloud seitig, daher:
madmax2010 schrieb:
Aaber, dass klingt direkt nach einem nextcloud error. Daher wirst du wohl in der nextcloud config nachsehen muessen, wo das nextcloud log liegt..

tausch mal in allen configs die php version 7.4 durch 8.0.. daher auch die frage danach von welcher php version auf welche du geupgradet hast :)
 
Code:
Aug 14 19:12:51 nextcloud apachectl[351547]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory

=> PHP 7.4-Module aus der apache2.conf rausnehmen. Ubuntu 22.04 kommt afaik mit PHP 8.
 
  • Gefällt mir
Reaktionen: madmax2010
@madmax2010 erstmal Danke für die Hilfe, ich gucke nach dem Log und werde es dann posten, aber nur zu meinem Verständnis.
Wie kann denn Nextcloud ein Fehler schmeißen? Ich habe ja nichts verändert, jedenfalls nicht nach meinem Wissen.
Ergänzung ()

@P54CS wie kann ich das machen?
 
ja doch du hast irgendwelche pakete geupgradet, u.a php vpn 7.4 auf 8.0
php-fpm fuehrt halt im prinzip die anwendung aus (muss aber in nextcloud configuriert sein) und apache ist dein reverse proxy (auch hier muss der richtige php-fpm konfiguriert sein)

Ubuntu ist eine sammlung von paketen. Wenn du sagst:
ArrorRT schrieb:
PHP habe ich nicht upgedatet, sondern Ubuntu
und ich nutze PHP 8.0

dann sit das eine sehr schwierige aussage, da du sehr viele Pakete upgradest.
ArrorRT schrieb:
@P54CS wie kann ich das machen?
zeig uns die nextcloud und reverse proxy configs..................
 
Du hast auf Ubuntu 22.04 upgedatet und dabei wurde auch PHP auf Version 8 aktualisiert. In den Apache-Configfiles stehen aber noch Verweise auf PHP 7. Deshalb restartet Apache permanent.
 
  • Gefällt mir
Reaktionen: madmax2010
Edit (Nextcloud Log):
Code:
{"reqId":"wAeGbAjfsx4gB0Sxgz5d","level":2,"time":"2022-01-15T19:12:02+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Wind>{"reqId":"wAeGbAjfsx4gB0Sxgz5d","level":2,"time":"2022-01-15T19:12:02+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windo>{"reqId":"zQdbdyYbXWe1B9Nj3GxD","level":2,"time":"2022-01-15T19:12:28+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Moz>{"reqId":"zQdbdyYbXWe1B9Nj3GxD","level":2,"time":"2022-01-15T19:12:28+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozi>{"reqId":"Zk3PWwemzQDS2dWmGNEy","level":2,"time":"2022-01-15T19:12:45+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Wind>{"reqId":"Zk3PWwemzQDS2dWmGNEy","level":2,"time":"2022-01-15T19:12:45+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Windo>{"reqId":"RqnRZosI1F7ZEWLnpE1F","level":2,"time":"2022-01-15T19:13:29+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Moz>{"reqId":"RqnRZosI1F7ZEWLnpE1F","level":2,"time":"2022-01-15T19:13:29+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozi>{"reqId":"8D5z9lTQV8mglSTfKY0W","level":2,"time":"2022-01-15T19:14:31+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Moz>{"reqId":"8D5z9lTQV8mglSTfKY0W","level":2,"time":"2022-01-15T19:14:31+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozi>{"reqId":"rBoICE2DKQVHV99Clfr6","level":2,"time":"2022-01-15T19:15:33+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Moz>{"reqId":"rBoICE2DKQVHV99Clfr6","level":2,"time":"2022-01-15T19:15:33+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"PROPFIND","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozi>{"reqId":"L3iEchHCvnutKfyMelw9","level":2,"time":"2022-01-15T19:16:27+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla>{"reqId":"L3iEchHCvnutKfyMelw9","level":2,"time":"2022-01-15T19:16:27+00:00","remoteAddr":"93.202.26.35","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/>
 
joa, entweder file permissions (alle nextcloud dateien gehoeren www-data, right?) oder du hast in der nextcloud config noch die alte php-fpm version stehen
 
Okay hab ich geschafft, aber jetzt bin ich wieder bei der Meldung vom Anfang.

Sorry, dass ich nochmal frage, aber was genau musste da geändert werden?
 
Dann läuft der Apache ohne PHP. Versuch mal, PHP für Apache zu aktivieren und Apache neu zu starten:

Code:
sudo a2enmod php8.1
sudo service apache2 restart

EDIT: Mal nachschauen, welche PHP-Version jetzt installiert ist, schadet auch nicht:
Code:
php -v
 
  • Gefällt mir
Reaktionen: madmax2010
Zurück
Oben