I tried to use Cron but for what ever reason I did not figure cron out the way Nexcloud docs say it should be.
In Nextcloud Admin panel there are three choices.
AJAX <--- Only good for one user
WEBCRON <--- Supposed to be good for 1-5 users
CRON <--- They way it should be done
I did get webcron to work though.
I created this cron job in the end user control panel:
/usr/bin/wget -O - https://YOUR-NEXCLOUD-SERVER.COM/cron.php >/dev/null 2>&1
This is what Nexcloud says is the prefered method:
crontab -u www-data -e
And append this line:
*/5 * * * * php -f /var/www/nextcloud/cron.php
Source:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.htmlWhen I try it the error is that it needs sudo to do "-u" but it needs to be done by the account directory owner.
Nextcloud says it must be done by the directory owner. It is not a such a good idea to give a enduser account shell access with sudo
When I use "crontab -u www-data -e" with sudo cenos says there is no " www-data" user. <--- what would it be called in CWP?
Any idea how to accomplish this?
O