# Script et erreur PHP module local cache

**URL:** <https://forum.yunohost.org/t/script-et-erreur-php-module-local-cache/16813>\
**Category:** Support apps\
**Tags:** nextcloud, french\
**Created:** [August 11, 2021, 2:39pm UTC](https://forum.yunohost.org/t/script-et-erreur-php-module-local-cache/16813 "2021-08-11T14:39:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![metyun](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/m/f14d63/32.png) [@metyun](https://forum.yunohost.org/u/metyun)\
**Post date:** [August 12, 2021, 11:45am UTC](https://forum.yunohost.org/t/script-et-erreur-php-module-local-cache/16813/2 "2021-08-12T11:45:26Z")

</div>

Bonjour @Guillermo,

Il y a ces discussions concernant cette erreur:

> <https://github.com/nextcloud/server/issues/27781>
>
> Nextcloud 21.0.3.1 (after upgrade from 21.0.2.1)
> Debian 10.10 Buster
> Apache 2.…4
> PHP 7.3.27
> 
> After the upgrade on my machine there is a condition not appearing in any NC version before:
> \`\`\`
> $ sudo -u www-data php /var/www/nextcloud/occ maintenance:repair
> 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?)
> \`\`\`
> No logging entry found. \*\*This makes the NC cron job unavailable\*\* apparently.
> 
> No such issue in any version before 21.0.3. All settings in place.
> 
> see also: https://help.nextcloud.com/t/cron-not-running-in-nc-21-0-3/119415/7?u=tp75

et également:

> <https://github.com/YunoHost-Apps/nextcloud_ynh/pull/422>
>
> \- Upgrade to 21.0.3

Ce qui est étonnant c’est qu’il y a ce fix à priori à la fin du fichier **/etc/php/7.3/fpm/pool.d/nextcloud.conf** où on peut lire:

```
; https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html#id1
php_value[apc.enabled]=1
php_value[apc.enable_cli]=1

```

Malgré tout, ça ne semble pas être activé si j’en crois la commande:

```auto
php7.3 -i | grep apc.enable

```

J’ai donc ajouté cette option:

```
echo apc.enable_cli=1 >> /etc/php/7.3/cli/php.ini

```

Et la commande `php7.3 -i | grep apc.enable` me renvoie bien maintenant:

```
apc.enable_cli => On => On
apc.enabled => On => On

```

Dans le doute, j’ai redémarré le service:

```
yunohost service restart php7.3-fpm

```

Plus qu’à attendre la prochaine tâche cron et voir si il y a des erreurs.  
Je n’ai pas de connaissances sur le sujet, je me contente de lire les rapports de bug et de suivre les recommandations.

Je ne sais pas si il faut remonter ce bug, je n’ai pas de compte github. @Kayou ou @ericg pourraient peut-être nous éclairer.

---

_[View the full topic](https://forum.yunohost.org/t/script-et-erreur-php-module-local-cache/16813)._
