Drupal and the Cron Panel



Drupal has a cron job that I need to run periodically. It’s a PHP file in the site’s root directory. I’m trying to set it up from Dreamhost’s panel but it’s not working. I get the following response by email:

–09:10:02-- http://sites.gregmills.com/cron.php
=> `cron.php.8’
Resolving sites.gregmills.com…
Connecting to sites.gregmills.com[]:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 0 [text/html]

0K 0.00 B/s

09:10:05 (0.00 B/s) - `cron.php.8’ saved [0/0]

I see that it says “ok” but I don’t believe it. When I check my log in Drupal it doesn’t show that the Cron maintenance has been performed. Does anyone know the correct script I need to put into Drupal’s cron panel to get this job to fire for Drupal?


I just ran into a similar issue and found the following DH wiki page that helped me: http://wiki.dreamhost.com/Crontab

Good luck!


Your correct. I had been to that page and I tried what it said. I went back to it based on your reply and I discovered that I thought was broken wasn’t.

Apparently, my cron job is running but I discovered a new problem. My Drupal install is a multi-site setup. So I was in one of my sites and checking the logs to see if the cron job had run, and it hadn’t. I went into the main site (the first one I set up of the group) and the logs do show that the cron job is running.

So now I have a new question. Do I need a cron job for every site in my multi-site drupal installation or is it fine since they are all using the same codebase?