I'm getting a 403: You don't have permission to access /cron.php on this server.

This is whether or not I am logged in. Stranger thing is that it is happening on our development server, but not the live server (drupal 7)


If token is valid (and it should be when you use Drupal-generated link), there is one other mechanism that can generate 403: .htaccess - check it for rewrites that might block it. If this will not help, try running cron from Drush. Drush bypasses Apache altogether, so you can know if the problem was Apache related (conf files, .htaccess), or purely Drupal related.

  • I found this in the .htaccess file: <Files cron.php> Order deny,allow Allow from anIPaddress Deny from all </Files>. not sure where that came from, but commenting it out got the cron to run :) – Damon May 16 '13 at 14:13
  • I wouldn't mind if you would check my answer as correct, then ;) – Mołot May 16 '13 at 14:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.