When trying to upgrade nextcloud, I get the following error
<code>www-data@mail:/www/nextcloud$ php7.3 occ upgrade
An unhandled exception has been thrown:
OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
www-data@mail:/www/nextcloud$
1
2
3
4
www-data@mail:/www/nextcloud$ php7.3 occ upgrade
An unhandled exception has been thrown:
OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
www-data@mail:/www/nextcloud$
To fix this, you need to install APC cache.
apt install php7.3-apcu 1 apt install php7.3-apcu For CLI, you need to edit PHP configuration file
vi /etc/php/7.2/cli/php.ini 1 vi /etc/php/7.2/cli/php.ini at the end of the file, add
apc.enable_cli = 1 1 apc.enable_cli = 1 You can also enable apc for the current command with option
php7.3 -d apc.enable_cli=1 occ upgrade 1 php7.3 -d apc.enable_cli=1 occ upgrade
