Nextcloud needs a cron job to run every x minutes. The best way to do this on the Synology is to use the scheduled tasks to call the script. Basically the script needs to run as root, but use sudo to change to the http user. Must also use php3 in the script otherwise the system defaults to php 5.6. Full config below:
cd <volume/directory/of/script>; sudo -H -u http bash -c 'php73 -f <phpScript>'

Leave a Reply