Hello
Now I just tried to activate cron, with:
sudo crontab -u www-data -e
put in:
* * * * * /usr/bin/php /home/f/htdocs/moodle3/admin/cli/cron.php >/dev/null
and nothing is seen in the log (https://localhost/moodle3/admin/tasklogs.php).
When I run the php command manually, it works, fills the log in moodle with entries. But a refresh after some minutes (or hours) doesnt show new entries, so the cron command is not running successfully, I guess. I sort the log for start time desc, so new entries should show.
The cron itself is running, in syslog there are entries for it, each minute, without error:
The cron itself is running, in syslog there are entries for it, each minute, without error:
...
May 5 10:48:01 franc-comp-ubuntu CRON[184746]: (www-data) CMD (/usr/bin/php /home/f/htdocs/moodle3/admin/cli/cron.php >/dev/null)
May 5 10:49:01 franc-comp-ubuntu CRON[184785]: (www-data) CMD (/usr/bin/php /home/f/htdocs/moodle3/admin/cli/cron.php >/dev/null)
May 5 10:50:01 franc-comp-ubuntu CRON[184836]: (www-data) CMD (/usr/bin/php /home/f/htdocs/moodle3/admin/cli/cron.php >/dev/null)
May 5 10:49:01 franc-comp-ubuntu CRON[184785]: (www-data) CMD (/usr/bin/php /home/f/htdocs/moodle3/admin/cli/cron.php >/dev/null)
May 5 10:50:01 franc-comp-ubuntu CRON[184836]: (www-data) CMD (/usr/bin/php /home/f/htdocs/moodle3/admin/cli/cron.php >/dev/null)
...
The moodle and moodledata folders are with owner www-data:www-data.
Could anybody give me a hint, what could be the problem?
Thank, frank
Thank, frank