Drupal 7 and cron

When I tried to access Drupal 7's cron.php from localhost I couldn't figure out why it gave me a 403 Forbidden error, despite everything looking correct in the configuration. Turns out that you now need to access cron.php with a key. Log in to your Drupal installation and go to Reports -> Status report and you will see the URL you need to use.

I have something like this is my crontab (one line):

0 * * * * wget -O - -q -t 1 http://foobar.baz/cron.php?cron_key=RTnpslsmQgfjAs8zT29MhZ-FsdfhjKASDh28fH8fd1

2010-11-29

blog comments powered by Disqus