05/31/2010 Update: Between the time I originally posted this article and now, Drupal has continued to grow in popularity and GoDaddy's drop-in applications are super-easy. Although the article is still valid for those who've done their own installations, if you're starting from scratch then using the drop-in applications may be easiest.
I [heart] Drupal. And for those of you interested in aggregating content, you know that Drupal needs a regular cron job (a scheduled task) to update your aggregated items. The easiest way to do this is schedule a curl http://www.yoursite.com/cron.php All Drupal sites have that cron.php file by default and when you run it, any cron jobs configured in your Drupal project will be run.
I do my hosting for my sites with GoDaddy.com. They provide me with all the options I need doing a basic website setup:
- Choice between php4 and php5.
- Choice between MySQL 4 and MySQL 5.
- The ability to run cron jobs.
- Decent limits and all that jazz.
- Very little downtime, even on my basic accounts
In case you're wondering... I listed of all that simply because I'm a happy customer. Anyways, our topic on hand is setting up a cron job through their interface.
Log in and go to My Account -> Hosting and Email -> Web Hosting and Databases -> and open your Web Hosting control panel. Once in the control panel go to Content -> Cron Manager. You'll be presented with a screen similar to the screenshot above. To set up your job:
- Hit "Create Cron Job" in the upper right-hand corner.
- You'll see 4 fields. Name your job whatever you'd like.
- The command should be this: curl http://www.yoursite.com/cron.php (No quotes, and don't use the Browse button)
- Set your Frequency and Hour to what you'd like.
- Hit Save and it should be listed below.
Shabam! Your Drupal cron jobs will now be run on a regular schedule. That was easy!