ownCloud do not show start page

upgrade

#1
<?php
/**
 

 *
 * 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/>
 *
 */

// Show warning if a PHP version below 5.4.0 is used, this has to happen here
// because base.php will already use 5.4 syntax.
if (version_compare(PHP_VERSION, '5.4.0') === -1) {
	echo 'This version of ownCloud requires at least PHP 5.4.0<br/>';
	echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
	return;
}

// Show warning if PHP 7.1 is used as ownCloud is not compatible with PHP 7.1 until
// version 10.0.0.
if (version_compare(PHP_VERSION, '7.1.0') !== -1) {
	echo 'This version of ownCloud is not compatible with PHP 7.1.<br/>';
	echo 'You are currently running ' . PHP_VERSION . '. Please use at least ownCloud 10.0.0.';
	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 (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
	echo 'ownCloud Server does not support Microsoft Windows.';
	return;
}

try {
	
	require_once '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);
	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 (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) {
	\OC::$server->getLogger()->logException($ex, array('app' => 'index'));
	OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);
	OC_Template::printExceptionErrorPage($ex);
}

I found this message in index.php.
Please how to upgrade owncloud when is down.


Upgraded from 8.1 to 8.2
#2

Hi, how did you install ownCloud?


#3

I'm pretty sure that the web server isn't processing PHP code and it just delivers the files, so make sure that PHP is installed and configured in the web server.


#4

first i install ubuntu server 14.04 and LAMP and after everything was fine i install owncloud by instructions, evetithing work fine. I used half year after its propobli make update of PHP from 5.0 to 7.0 and after is stop as you can see from info upstairs PHP7.0 is not compatible with owncloud 8.1 and after i can not make upgrade to owncloud i make upgrade to ubuntu from 14.04 to 16.04 but nothing. I uninstall PHP7.0 and again i can not install now php5.0. Please Help


#5

I have the same issue. Updated Ubuntu server to Ubuntu 18.04.1 LTS with php7.2 and now i have the same webpage as kule69 has.
php seems to be installed.
apache seems to be running.

ownCloud version 10.0.10


#6

Hey,

i think the previous comment of @jvillafanez is valid for your case as well:


#7

Sure, tom, but i am kind of copy-paste user and was happy to have it installed a year ago. Now really dont know, where to check and what :smiley:
I know, everyone hates that kind of people on forum.
I need to find somebody local to have a look on it.


#8

Hey,

maybe common topics like the ones below could help you with the configuration of Apache and PHP?


#9

You cant even imagine, how thankful I am!

Followed the first link i have edited:

/etc/php/7.2/apache2/php.ini changed short_open_tag = Off -> short_open_tag = On

Then in

/etc/apache2/apache2.conf

changed

<IfModule php7_module>
  AddType application/x-httpd-php .php
  AddType application/x-httpd-php-source .phps
  <IfModule dir_module>
      DirectoryIndex index.html index.php
  </IfModule>

to

<IfModule php7.2_module>
  AddType application/x-httpd-php .php
  AddType application/x-httpd-php-source .phps
  <IfModule dir_module>
      DirectoryIndex index.html index.php
  </IfModule>

then i did

a2enmod php7.2

and

systemctl restart apache2

AND I HAVE MY WEBPAGE AVAILABLE :smiley: