Nextcloud Ubuntu change AJAX to Cron

Dear LinuxBabe:

I am having a problem setting-up cron to process background jobs.

example:
sudo crontab -u www-data -e
*/5 * * * * php -f /usr/share/nginx/nextcloud/cron.php (save and close)
sudo crontab -u www-data -l

the line above should produce:
[snip]
*/5 * * * * php -f /usr/share/nginx/nextcloud/cron.php

i also tried php-cli instead of php

it does not work. nothing is printed.
Permissions issue?

I tried to follow Nextcloud instructions, they should buy your instructions.
Next Cloud Instructions

Please help

The instructions are right. If it doesn’t print anything, the crontab file is empty.

1 Like

Thank you for pointing me in the right direction LinuxBabe! :smiley:

I had to setup/create a cron file. lol, noob issues.

  1. follow the instructions from nextcloud link above
  2. sudo nano /etc/crontab
  3. */5 * * * * php -f /usr/share/nginx/nextcloud/cron.php (save and close)
  4. crontab -u www-data -l :smiley:(prints */5 * * * * php -f /var/www/nextcloud/cron.php)