Hello
My System:
Ubuntu Server 20.04 LTS / Apache 2.4.41 / PHP 7.4.3 / MariaDB 10.3.37 / Nextcloud 25.0.3
In the settings for “Background-Jobs” I set “Cron”; then I followd the manual for Cron
- first I tried the crontab way: crontab -u www-data -e => */5 **** php -f /path/to/cron.php
- second I tried the systemd way with a cron.service and a cron.timer file (copied exactly the examples from the manual, but adapting the path to php and cron.php) followed by the commands systemctl daemon-reload; sytemctl enable cron.timer, systemctl start cron.timer
In both cases the cronjob dosen’t work, so that in Nextcloud settings I have an warning “… something wen’t wrong”
What works is using the commandline and the command: sudo -u www-data php -f /path/to/cron.php
Has anybody an idea what prevents the cronjobs from running?
Kind regards, go4ncloud