I was just starting out with my shiny new Moodle site http://nelkat.net/education/admin/and got several messages under notifications. These two seemed rather ominous:
Mystified, I looked at the Moodle documentation on Cron jobs. It took me a while to understand the directions for C Panel correctly. I did go to the Advanced section and found Cron but there is a warning that you should know Linux script well to do this and that it is best to check with your webhost. This is me, definitely checking in!!!
The first error about enabling PHP setting display_errors is just letting you now if that’s turned on no errors will be hidden for users on the site. So, no need to worry there.
In cpanel there is a place to run cron jobs, looks like the Moodle cron job it is referencing is defined here. If you send a support email to support@reclaimhosting.com I can take a look at your specific instance and test the cron job, then report back here with my finding if I solve it.
In cPanel there is a Cron Jobs icon under the Advanced section:
​​
From there you can see a Cron job option, leave the default email and set it to run every minute (it fills in all the bizarre commands for you). Then grab the command from this Moodle page and update it with your site URL details: wget -q -O /dev/null http://yourdomain.com/education/admin/cron.php
Hi Jim and Nell,
Thanks for this info, I was stuck on this too and this thread got me on the right path. The moodle docs say the “wget” method is deprecated and may be removed https://docs.moodle.org/39/en/Cron
I tried the other method on the page which seems to work so I went with that.
/usr/local/bin/php -q /home/userid/public_html/lms/admin/cli/cron.php
Make sure you follow the directions in Moodle.org and include >/dev/null
Here’s the example from my site:
/usr/local/bin/ea-php72 /home/edbecksu/moodle.ed-beck.sunycreate.cloud/admin/cli/cron.php >/dev/null
Otherwise there will be a separate log file/email for everytime that you cron runs, and if you have it set for every minute, it can fill up space alarmingly quickly. Moodle logs the most important information you will need to know in the scheduled tasks area of the admin.
Also know that cron is connected to your version of PHP, so you may want to switch your PHP version to a specific version. (If you have it set to inherit, your PHP version might change without your knowledge based on your site admin, where if you define a specific version, now you have to be aware of updates and depreciations).