crons not working?

crons not working?

by Salem Hicks -
Number of replies: 2

Hi there,

I'm use Cpanel (with Fantastico) to install Moodle 1.6.3 but the cron is not sending out any emails!!

I entered this command to run:

php http://example.com/moodle/admin/cron.php

When I go into Administration in the moodle site a link eventually appears saying that the cron has not run in the last 24hrs. After clicking on that link the emails (all backed up) usually get sent out.

Any help would be appreciated.

Average of ratings: -
In reply to Salem Hicks

Re: crons not working?

by Scott Elliott -
Salem,

Check out the moodle docs for more information on cron entries. Here's a link: http://docs.moodle.org/en/Cron.

In short, looks like you need to make up your mind whether you are going to use wget or the php command line. I'd recommend the php command line. First off, you may need to know the full path to cron. You will need to know the full path to your cron.php file. Here's an example command to run:

/opt/bin/php -f /home/username/public_html/moodle/admin/cron.php

Of course, this would only be part of the crontab entry.

Hope this helps!

Scott