NextCloud cron.php

Hey,
how i can activate NextCloud cron.php ?

I use:
Ubuntu server 16.04.1

Check the docs? https://docs.nextcloud.com/server/11/admin_manual/configuration_server/background_jobs_configuration.html#cron

Many thanks for this link :slight_smile:

Wierd…i adding cron.php contab www-data
/var/log/syslog showing this row: Dec 16 11:30:01 pilveserver CRON[4912]: (www-data) CMD (php -f /var/www/pilv/cron.php)
I taking a test: creating folder, but after 15min email not coming…

We are still using the same cron-entry since ownCloud-times:

*/15 * * * * /usr/bin/wget --spider https://your-nextcloud-url/cron.php --ca-certificate=/etc/ssl/certs/ca-bundle.crt >/dev/null 2>&1

Works without problems.

@Tamsy you are using web cron which is not recommended if possible because it can time out and the server will kill it potentially leaving your system in an inconsistent state

@BernhardPosselt

Thank you for pointing this out. I wasn’t aware of this and will change the cronjob soonest.

We are using web cron since about 3 years and have not experienced any errors so far.

I dont understund how works Ajax cron ?

Ajax cron is basically after X requests your browser makes to the server it will execute cronjobs. This is also prone to timeouts and your webinterface will have noticable delays every X requests.