Cannot access cron.php from web interface

Cannot access cron.php from web interface

napisao/la Niels Terp -
Broj odgovora: 3

Hi,

I'm setting up moodle for my private webpage, using Moodle 3.5.1+ (Build: 20180810)

But I have a big problem: I cannot access cron.php from a web browser, getting the error message "Command line scripts can not be executed from the web interface".

I have disabled "Cron execution via command line only" in Site security settings. I have also given a password.

What else should I do to make this work?

Thank you very much in advance !

Niels Terp

Odgovor na Niels Terp

Re: Cannot access cron.php from web interface

napisao/la Ken Task -
Slika Particularly helpful Moodlers

? what happens when you go to:

http://site.example.com/admin/cron.php?password=opensesame
Note: the url isn't pointed to admin/cli/cron.php.

Do you get an error?   If so, what is the error?

'spirit of sharing', Ken

Odgovor na Ken Task

Re: Cannot access cron.php from web interface

napisao/la Niels Terp -

Thank you very much Ken ! 

I had excactly used /cli/ in my URL. Without it, it works like a charm !