Feeds not updated

I am using nextcloud on a Synology NAS. I installed News and added some feeds which got populated as expected. But since then now new news item has been added.

I am using the system cron, but as it is not possible to create a cron job for another user in Synology’s OS, the cron job executes
curl http://localhost/nextcloud/cron.php
instead. In the end that means http (Synology’s httpd user) calls php to execute cron.php, and Nextcloud seems satisfied with that, because it displays the green dot and says “Last cron job execution: 6 minutes ago”.

But this is not good enough for News, because the feeds don’t get updated.

I tried the suggestions from http://www.synology-wiki.de/index.php/Cron (german):

  • a cron job calling /bin/su -c "php -f nextcloud/cron.php" http
  • creating a crontab named /var/spool/cron/crontabs/http
    but to no avail.

Any ideas?

I found out how to do it right (seems I have to post a question here before finding the solution …)
I have created a cron job calling /bin/su -s /bin/sh -c "/usr/local/bin/php56 -f /volume1/web/nextcloud/cron.php" http. The trick is to use php56 instead of php for cronjobs.