My Nexctloud is working fine despite the switch to PHP-8 but despite the version change via scheduled tasks nextcloud is still giving me errors.
Screen of my crontab:
cron is a very simple process, in only executes what is in the line.
When cron executes, it tries to run php and your system is complaining that the environment is not properly set up. The only way to fix that is to go through your Apache and NextCloud configuration to make sure that all the settings are correct. The change from PHP7.4 to PHP8.0 changed a few options that don’t get updated automatically.
-G
The other thing that may be happening, is if you are using APCu for memory caching?
in which case you might need to append --define apc.enable_cli=1 to your cron job: