Error php occ file

Nextcloud version (9,1,6,2):
Operating system and version (Raspbian GNU/Linux 9.1):
Apache or nginx version (Apache 2.4.25):
PHP version (5.6.30-0+deb8u1):
Is the first time i have seen this error

when i use php occ file in terminal, i have an error :

Texte préformatéPHP Warning: require_once(lib/base.php): failed to open stream: No such file or directory in /var/www/owncloud/console.php on line 58
PHP Fatal error: require_once(): Failed opening required ‘lib/base.php’ (include_path=’.:/usr/share/php’) in /var/www/owncloud/console.php on line 58Texte préformaté

and the nextcloud interface is out of service.
I just can see a white screen.

Please can you help me to repair my nexctloud ?

this is the list of files in my nextcloud installation :
. 3rdparty console.php cron.php .htaccess index.php occ remote.php status.php version.php
… AUTHORS COPYING-AGPL db_structure.xml index.html index.php.1 public.php robots.txt .user.ini
the cat of my console.php
texte préformaté indenté par 4 espaces
Nextcloud version (9,1,6,2):
Operating system and version (Raspbian GNU/Linux 9.1):
Apache or nginx version (Apache 2.4.25):
PHP version (5.6.30-0+deb8u1):
Is the first time i have seen this error

when i use php occ file in terminal, i have an error :

PHP Warning: require_once(lib/base.php): failed to open stream: No such file or directory in /var/www/owncloud/console.php on line 58
PHP Fatal error: require_once(): Failed opening required ‘lib/base.php’ (include_path=’.:/usr/share/php’) in /var/www/owncloud/console.php on line 58

and the nextcloud interface is out of service.
I just can see a white screen.

Please can you help me to repair my nexctloud ?

this is the list of files in my nextcloud installation :
. 3rdparty console.php cron.php .htaccess index.php occ remote.php status.php version.php
… AUTHORS COPYING-AGPL db_structure.xml index.html index.php.1 public.php robots.txt .user.ini

the cat of my console.php file :
<?php

  • You should have received a copy of the GNU Affero General Public License, version 3,
  • along with this program.

*/

use OC\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;

define(‘OC_CONSOLE’, 1);

// 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’.PHP_EOL;
echo 'You are currently running ’ . PHP_VERSION . ‘. Please update your PHP version.’.PHP_EOL;
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.
’;
echo 'You are currently running ’ . PHP_VERSION . ‘. Please use at least ownCloud 10.0.0.’;
return;
}
function exceptionHandler($exception) {
echo “An unhandled exception has been thrown:” . PHP_EOL;
echo $exception;
exit(1);
}
try {
require_once ‘lib/base.php’;
// set to run indefinitely if needed
set_time_limit(0);
if (!OC::$CLI) {
echo “This script can be run from the command line only” . PHP_EOL;
exit(0);
}

set_exception_handler(‘exceptionHandler’);
if (!OC_Util::runningOnWindows()) {
if (!function_exists(‘posix_getuid’)) {
echo “The posix extensions are required” . PHP_EOL;
exit(0);
}
$user = posix_getpwuid(posix_getuid());
$configUser = posix_getpwuid(fileowner(OC::$configDir . ‘config.php’));
if ($user[‘name’] !== $configUser[‘name’]) {
echo “Console has to be executed with the user that owns the file config/config.php” . PHP_EOL;
echo "Current user: " . $user[‘name’] . PHP_EOL;
echo "Owner of config.php: " . $configUser[‘name’] . PHP_EOL;
echo “Try adding 'sudo -u " . $configUser[‘name’] . " ’ to the beginning of the command (without the single quotes)” . PHP_EOL;
exit(0);
}
}

$oldWorkingDir = getcwd();
if ($oldWorkingDir === false) {
echo “This script can be run from the ownCloud root directory only.” . PHP_EOL;
echo “Can’t determine current working dir - the script will continue to work but be aware of the above fact.” . PHP_EOL;
} else if ($oldWorkingDir !== DIR && !chdir(DIR)) {
echo “This script can be run from the ownCloud root directory only.” . PHP_EOL;
echo “Can’t change to ownCloud root directory.” . PHP_EOL;
exit(1);
}

if (!function_exists(‘pcntl_signal’) && !in_array(’–no-warnings’, $argv)) {
echo “The process control (PCNTL) extensions are required in case you want to interrupt long running commands -” . PHP_EOL;
}

$application = new Application(\OC::$server->getConfig(), \OC::$server->getEventDispatcher(), \OC::$server->getRequest());
$application->loadCommands(new ArgvInput(), new ConsoleOutput());
$application->run();
} catch (Exception $ex) {
exceptionHandler($ex);
} catch (Error $ex) {
exceptionHandler($ex);
}

thank you

did you search for lib/base.php?

Hello,
I can’t found this file because i don’t see lib folder.
In /var/www/nextcloud
I just can see :
. 3rdparty console.php cron.php .htaccess index.php occ remote.php status.php version.php
… AUTHORS COPYING-AGPL db_structure.xml index.html index.php.1 public.php robots.txt .user.ini
thank you.

Well, your installation seems to be broken.