Hello,
I use Hostinger with moodle and I have a problem in setting up cron job. It works only manually in the web browser. Although I create a cron job in hostinger to run automatically, it doesn't work. Please advise.
Thanks
One very important detail that I would like to add to this solution although this is well described:
In case you are using sub domain for Moodle i.e., moodle.abcd.com, etc, then the correct path still would include the domain name, not the subdomain name. For that, you are going to put the subdomain directory name (inside public_html, it is moodle) instead. So that correct path becomes:
domains/abcd.com/public_html/moodle/admin/cli/cron.php
Thank you
I hope it will help to whoever is struggling, I spent multiple hours as well but it is worth the time.
Thanks for sharing back info.
Important to emphasize ... "If Moodle is set up inside a folder, it should be added after public_html"
That means there is something above ... up one level ... in public_html. A static page? or a WordPress (WP)?
If WP there is a 'catch 22'. Note the IF! WP uses .htaccess files. Those files are hierarchical ... the top level .htaccess file rules apply to all files/folders (including in this case a 'moodle' directory). Those rules are for WP ... not for the moodle ... and those WP rules can disrupt a moodle.
'SoS', Ken