That's what I did at first, but it would complain that Nextcloud 23 cannot use php 7.1, which is apparently what comes as standard on TOS and does not get replaced, even when you install other versions. (I am a bit lost as to how these PATHs are set up on TOS and there is very little information/documentation to go around.
I got around this by running:
Code: Select all
cp /mnt/md0/appdata/MOD_CONFIG/Nextcloud_okm/php.ini /usr/local/apache24/sys/etc/php.ini
setting:
Code: Select all
*/5 * * * * /usr/local/apache24/sys/bin/php -f /usr/local/Nextcloud_okm/bin/nextcloud/cron.php
and then changing the setting from within Nextcloud from Ajax to cron.
I had to copy the php.ini file from within the Nextcloud folder, as the php command was trying to find a php.ini here:
but there were no php.ini files there.