Nextcloud version (eg, 18.0.2): 19.0.3
Operating system and version (eg, Ubuntu 20.04): Synology DSM
Apache or nginx version (eg, Apache 2.4.25): Apache 2.2
PHP version (eg, 7.1): 7.3
The issue you are facing:
I would like to run “occ” commands from putty but everytime I try to perform a command, I get this error:
This version of Nextcloud requires at least PHP 7.2
You are currently running 5.6.11. Please update your PHP version.
For sure, under Webstation: general settings, PHP 7.3 is configured. Also under Virtual Host PHP version 7.3 is configured.
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it:
- Run occ command
The output of your Nextcloud log in Admin > Logging:
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'XXX',
'passwordsalt' => 'xxx',
'secret' => 'xxx',
'trusted_domains' =>
array (
0 => '111.222.333.444',
1 => 'wildcard.xxx.de',
2 => 'xxx.de/nx',
3 => 'nx.xxx.de',
),
'datadirectory' => '/volume1/web/nx/data',
'dbtype' => 'mysql',
'version' => '19.0.2.2',
'overwrite.cli.url' => 'http://111.222.333.444/xx',
'dbname' => 'nx',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'xxx',
'dbuser' => 'xx',
'dbpassword' => 'xxx',
'log_type' => 'file',
'logfile' => 'nextcloud.log',
'loglevel' => 3,
'logdateformat' => 'F d, Y H:i:s',
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'maintenance' => false,
'updater.secret' => 'xxx',
'updater.release.channel' => 'stable',
'theme' => '',
'installed' => true,
);
Does anyboy know why this happens? I am not sure if this is Synology related or not.