First install nextcloud problem web, can you help me!

<?php /** * @copyright Copyright (c) 2016, ownCloud, Inc. * * @author Christoph Wurst * @author Joas Schilling * @author Jörn Friedrich Dreyer * @author Lukas Reschke * @author Morris Jobke * @author Robin Appelman * @author Roeland Jago Douma * @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, ['app' => 'index']); //show the user a detailed error page OC_Template::printExceptionErrorPage($ex, 503); } catch (\OC\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) { OC_Template::printErrorPage($ex->getMessage(), $ex->getMessage(), 403); } 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); }


Hey and welcome to the community-forum of Nextcloud.

Ummm… I am afraid I don’t really know what you want from us. Your thread is a complete mess :frowning:
Pls edit it in that way that everyone could follow your problems (what have you done? where did you get your installing-suggestions from? what did you want to do? On which kind of machine? Involved OSses… etc.)

Thanks in advance

i install new serveur nextcloud in redhat server, and i install all prérequis in server Php, mariadb, httpd, but i have this problem web he can’t opend

you missed - must likely - to configure your web server to handle php files correct.

which howto did you use to install nextclud?
which web server are you using?

i Track this steps :

server redhat 7.8,
web server is apache

php -v

is working?

ls /etc/apache2/mods-enabled/ | grep php

shows that php is enabled in apache? (maybe redhat uses another path for the apache config files.)

otherwise try:

sudo a2enmod php7.3
sudo service apache2 restart

you see !

[root@spr-nextcloud-l ~]# php -v
PHP 5.4.16 (cli) (built: Oct 29 2019 09:56:22)
Copyright © 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright © 1998-2013 Zend Technologies
[root@spr-nextcloud-l ~]# ls /etc/apache2/mods-enabled/ | grep php
ls: impossible d’accéder à /etc/apache2/mods-enabled/: Aucun fichier ou dossier de ce type
[root@spr-nextcloud-l ~]# sudo a2enmod php7.3
sudo: a2enmod : commande introuvable
[root@spr-nextcloud-l ~]# sudo service apache2 restart
Redirecting to /bin/systemctl restart apache2.service
Failed to restart apache2.service: Unit not found.
[root@spr-nextcloud-l ~]#

the expected result from your how to:

so you didn’t setup php7.3 correct.

the best advice is to repeat the installation from skretch. that is to say reinstall redhat and start over again.

yes is version php thanks for your help