There are very different hints in the wild so maybe someone can give clarity to this topic.
I have running a NC 23.0.3 with PHP 8.0.15 under ubuntu server 20.04.4 with 16GB RAM.
My Installation includes php8.0-redis and php8.0-apcu and php8.0-memcache as well
php -f /var/www/nextcloud/cron.php delivers no errors.
In the manual for NC 23 there is following warning
APCu is disabled by default on CLI which could cause issues with nextcloud’s cron jobs. Please make sure you set the
apc.enable_cli
to1
on yourphp.ini
config file or append--define apc.enable_cli=1
to the cron job call.
Loocking to my /etc/php/8.0/fpm/php.ini file delivers no results when searching for
apc.enable_cli
but when checking /etc/php/8.0/mods-available i found the apcu.ini with the following
extension=apcu.so
apc.enable_cli=1
My nextcloud config contains
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => 'true',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'dbindex' => 0,
'password' => 'MY-REDIS-SECRET',
'timeout' => 1.5,
),
my /etc/php/8.0/fpm/conf.d contains a symbolic link “20-apcu.ini” pointing to …/mods-available/apcu.ini
So my confusion is now, is everything done with that or is it really nescessary to put the
apc.enable_cli=1 value into my php.ini and if yes in which one?
/etc/php/8.0/cli/php.ini or /etc/php/8.0/fpm/php.ini
Thanks for clarity. If it is not nescessary or if the mods-available entry is enough, why does the admin manual still contain the hint?
Regards
chrissi