App update problem

when migrating from owncloud (10.13) to nexcloud (25) by starting nextcloud I received this error:

Mistake

Unable to write to “apps” folder.
This can usually be corrected by giving the web server write access to the apps folder or by disabling the applications store in the configuration file.

by issuing, from the terminal, the command: sudo -u www-data php occ upgrade

pi@raspberrypi:/var/www/nextcloud $ sudo -u www-data php occ upgrade

An unhandled exception has been thrown:

OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

currently running version 7.4 php , with apcu installed

could you tell me how to do it?

on my config.php file I set this:
‘apps_paths’ =>
array (
0 =>
array (
‘path’ => ‘/var/www/nextcloud/apps’,
‘url’ => ‘/apps’,
‘writable’ => true,

Hello,

Depending on your install apache may be read only but…

Please verify apcu is installed:
php -m | grep apcu

if not:
sudo apt update
sudo apt install php-apcu

Make sure APCu is active/enabled:
sudo phpenmod apcu
sudo systemctl restart apache2

Check the php.ini configuration:
cat /etc/php/7.4/apache2/php.ini

Confirm:
extension=apcu.so
apc.enable_cli=1

Restart:
sudo systemctl restart apache2

Confirm your versions of PHP for the system and apache match:
php -v

sudo update-alternatives --set php /usr/bin/php7.4

Try the upgrade again:
sudo -u www-data php occ upgrade

Make sure your folder permissions are correct:
sudo chown -R www-data:www-data /var/www/nextcloud/apps
sudo chmod -R 750 /var/www/nextcloud/apps

pi@raspberrypi:~ $ php -m | grep apcu

apcu

pi@raspberrypi:~ $ sudo phpenmod apcu

pi@raspberrypi:~ $ sudo systemctl restart apache2
pi@raspberrypi:~ $ extension=apcu.so

pi@raspberrypi:~ $ apc.enable_cli=1

-bash: apc.enable_cli=1: command not found

pi@raspberrypi:~ $ sudo systemctl restart apache2

pi@raspberrypi:~ $ php -v

PHP 7.4.33 (cli) (built: Dec 24 2024 06:15:56) ( NTS )

Copyright (c) The PHP Group

Zend Engine v3.4.0, Copyright (c) Zend Technologies

with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies

pi@raspberrypi:~ $ sudo update-alternatives --set php /usr/bin/php7.4

pi@raspberrypi:~ $ cd /var/www/nextcloud

pi@raspberrypi:/var/www/nextcloud $ sudo -u www-data php occ upgrade

An unhandled exception has been thrown:

OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

pi@raspberrypi:/var/www/nextcloud $ sudo chown -R www-data:www-data /var/www/nextcloud/apps

pi@raspberrypi:/var/www/nextcloud $ sudo chmod -R 750 /var/www/nextcloud/apps

pi@raspberrypi:/var/www/nextcloud $ sudo -u www-data php occ upgrade

An unhandled exception has been thrown:

OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

from the browser:

Error:

The Activity (activity), WebDAV (dav), Federated File Sharing (federatedfilesharing), Files (files), PDF Viewer (files_pdfviewer), Provisioning API (provisioning_api), Theming (theming) app files were not replaced correctly. Make sure it is a compatible version with the server.