Moodle cron.php Not Working Continuously

Moodle cron.php Not Working Continuously

by Sami Özcan -
Number of replies: 3

Greetings,

Let me summarize as follows; I am trying to send username and password to the users I added in bulk. but it only sends mails when I visit the ../admin/cron.php page and refresh the page. I want cron.php to work continuously so that I don't have to refresh the page whenever I add a user. cron.php should be active and send directly.

I would be very grateful if you help me,

Good day


---
Version: 4.0.1
work location: localhost

Average of ratings: -
In reply to Sami Özcan

Re: Moodle cron.php Not Working Continuously

by Mark Johnson -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi, Refer to the Cron documentation to ensure your system is running the cron script automatically. It's very important that this is set up to ensure your Moodle site functions correctly.

In reply to Mark Johnson

Ynt: Re: Moodle cron.php Not Working Continuously

by Sami Özcan -
thanks, there is no problem with my settings, but I just want it to work continuously and I looked at the document you said, I could not find an answer to my problem. do you have any other suggestions?
In reply to Sami Özcan

Re: Ynt: Re: Moodle cron.php Not Working Continuously

by Mark Johnson -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The cron.php script (ideally /admin/cli/cron.php, although you can also use /admin/cron.php) is designed to be called regularly from a cron job or scheduled task (same thing, but different terminology on Linux and Windows) by your server operating system. You should configure your system to run it every minute, which is close enough to "continuously" for Moodle's purposes, unless you have a very large site.

The documentation I provided links out to pages specific to each operating system, I suggest reading the page for the system your server is running.