NC 23.0.3, PHP7.4 > Auth.log full with opening/closing session www-data [SOLVED]

Hello all,

Since upgrade to NC 23.0.3 and PHP 7.4 on RaspberryPi the auth.log is running full with opening and closing session for www-data every second or so.
Even if no one is logged in
Even if Apache2 is stopped
Even if Redis is stopped

What to do to fix this ?
Thanks

auth.log example:
Apr 1 15:42:04 nextcloudpi4 sudo: pam_unix(sudo:session): session opened for user www-data by (uid=0)
Apr 1 15:42:04 nextcloudpi4 sudo: pam_unix(sudo:session): session closed for user www-data
Apr 1 15:42:07 nextcloudpi4 sudo: root : TTY=unknown ; PWD=/ ; USER=www-data ; COMMAND=/usr/bin/php /var/www/nextcloud/occ config:system:get overwrite.cli.url
Apr 1 15:42:07 nextcloudpi4 sudo: pam_unix(sudo:session): session opened for user www-data by (uid=0)
Apr 1 15:42:08 nextcloudpi4 sudo: pam_unix(sudo:session): session closed for user www-data

It finally stopped logging after stopping MySQL service
That gives some clue what to do I guess.

Anyone else experiencing this and know how to help ?

Although PHP7.4 in installed and NC is running, on the commandline I get:

  • This version of Nextcloud is not compatible with > PHP 8.0.
    You are currently running 8.1.4.

php -v shows : PHP 8.1.4 (cli)

This 8.1 came along with installing 7.4, which was advised by NC

In /run/php it it shows php7.4-fpm.pid, as expected

Q: So where and when is 8.1 activated ?

Purging php8.* broke the NC installation.
Somehow, installing php7.4 slip-streamed php8.1 and runs them simultaneously.
Reneabling APCu fixed the NC install.
Added api.enable_cli=1 to my php.ini file.

But still: the auth.log keeps overflowing with the same messages.

[SOLVED}

Replace APCu with Redis, the log is quiet now.