NextCloud APCu not available for local cache
When trying to upgrade nextcloud, I get the following error
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.
1 |
apt install php7.3-apcu |
For CLI, you need to edit PHP configuration file
1 |
vi /etc/php/7.2/cli/php.ini |
at the end of the file, add
1 |
apc.enable_cli = 1 |
You can also enable apc for the current command with option
1 |
php7.3 -d apc.enable_cli=1 occ upgrade |