Configure Owncloud to use system CRON in Synology NAS (DSM 6 RC)

This guide will show how to configure Synology CRON to call Owncloud cron.php regularly (every 15 minutes).

When it comes to Synology NAS, I never edit system files directly through SSH, if not absolutely needed. And luckily this time we don’t have to – as we can configure everything in Synology admin UI. The setup I have is Synology DSM 6 RC and latest Owncloud 9 (stable).

In order to setup Owncloud CRON to use Synology NAS system CRON – please do following.

Approve changes with OK – and you have configured Synology CRON to call Owncloud’s cron.php every 15 minutes.

6)

You can check Synology crontab for the added lines – this is how to do that:

7)

Last step is to define Owncloud to use system CRON and enjoy the scheduled Owncloud CRON jobs

This setup seems to be working for me without issues – If this was working for you as well – please let me know by posting something below.

Thanks!!

Update 05.04.2016: If you have secured your Owncloud installation and enabled HTTP -> HTTPS re-direct, and you are calling Owncloud cron.php with Synology Task Scheduler, you might have to update your Task Scheduler script accordingly based on your needs and certificates installed for curl. If it is running on the same server, and you have an issue with certificates – you could configure the user-defined script execution to ignore certificate check:

1

curl --insecure https://localhost/owncloud/cron.php

Feedback

Juha Ketola

Author is a passionate IT enthusiast and early adopter. Packed with years of experience leading Enterprise level IT development teams within the biggest companies of Technology industry. Watches closely start-ups and new disruptive innovations in order to stay on the cutting edge. Embraces hands-on IT development and IoT.