Owncloud-10.3.2 install on Centos stream 9 can not show owncloud portal

Dear All,

       I recently installed a CentOS stream 9, and plan to install owncloud on this linux box, having followed below guide, after the installation when i access http://localhost/owncloud, it shows all php coding instead of the owncloud login portal, any help would be appreicated 

when access http://localhost/owncloud - its show below instead

<?php /** * @author Jörn Friedrich Dreyer * @author Lukas Reschke * @author Morris Jobke * @author Philipp Schaffrath * @author RealRancor * @author Robin Appelman * @author Sergio Bertolín * @author Thomas Müller * @author Vincent Petry * * @copyright Copyright (c) 2018, ownCloud GmbH * @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 * */ // Show warning if a PHP version below 7.0.7 is used, this has to happen here // because base.php will already use 7.0 syntax. if (\version_compare(PHP_VERSION, '7.0.7') === -1) { echo 'This version of ownCloud requires at least PHP 7.0.7
'; echo 'You are currently running PHP ' . PHP_VERSION . '. Please update your PHP version.'; return; } // Show warning if PHP 7.4 or later is used as ownCloud is not compatible with PHP 7.4 if (\version_compare(PHP_VERSION, '7.4.0alpha1') !== -1) { echo 'This version of ownCloud is not compatible with PHP 7.4
'; echo 'You are currently running PHP ' . PHP_VERSION . '.'; return; } // running oC on Windows is unsupported since 8.1, this has to happen here because // is seems that the autoloader on Windows fails later and just throws an exception. if (\stripos(PHP_OS, 'WIN') === 0) { echo 'ownCloud Server does not support Microsoft Windows.'; return; } 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_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); OC_Template::printExceptionErrorPage($ex); } catch (\OC\HintException $ex) { OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); OC_Template::printErrorPage($ex->getMessage(), $ex->getHint()); } catch (\OC\User\LoginException $ex) { OC_Response::setStatus(OC_Response::STATUS_FORBIDDEN); OC_Template::printErrorPage($ex->getMessage()); } catch (\OCP\Files\ForbiddenException $ex) { OC_Response::setStatus(OC_Response::STATUS_FORBIDDEN); OC_Template::printErrorPage($ex->getMessage()); } catch (Exception $ex) { try { \OC::$server->getLogger()->logException($ex, ['app' => 'index']); //show the user a detailed error page OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); OC_Template::printExceptionErrorPage($ex); } catch (\Exception $ex2) { // with some env issues, it can happen that the logger couldn't log properly, // so print out the exception directly echo(''); echo('Exception occurred while logging exception: ' . $ex->getMessage() . '
'); echo(\str_replace("\n", '
', $ex->getTraceAsString())); echo(''); } } catch (Error $ex) { \OC::$server->getLogger()->logException($ex, ['app' => 'index']); OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); OC_Template::printExceptionErrorPage($ex); } keith

Hi piaakit,

it looks like your PHP installation is not complete. When I followed the manual you linked there is a reference to https://tecadmin.net/install-lamp-centos-8/ where i think you omitted the commands in Step 3 or there had been an error.

I’d suggest to restart with Step 3. You can only go ahead when the phpinfo page is shown (Step 6 Test Setup)



thanks for your update, and i facing below issue when following the step 3, any idea ?

[root@CentOSHome Downloads]# sudo dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm
Last metadata expiration check: 2:54:21 ago on Wed 31 Aug 2022 02:27:13 PM HKT.
remi-release-8.rpm 23 kB/s | 29 kB 00:01
Problem: conflicting requests

  • nothing provides epel-release = 8 needed by remi-release-8.6-1.el8.remi.noarch
  • nothing provides system-release(releasever) = 8 needed by remi-release-8.6-1.el8.remi.noarch
    (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.