Last updated on December 7th, 2016 at 12:34 pm.
This is as much for my reference for each time I setup a Drupal site as it is for anyone wondering how to setup a cron job to automatically run cron on a Drupal site through cPanel.
- Log into cPanel
- Click “Cron Jobs”
- In the “Add new cron job” section, select “Once an hour” from common settings (or however frequently you want your cron job to run – alternatively, configure it using the time increments available).
- Put in the following command:
wget -O /dev/null http://example.com/cron.php 2>/dev/null
- Click “Add new cron job”
That’s it, all done. Just change example.com to your domain name, the address to cron.php should be the actual location of cron.php on your server. As long as it is correct it should all work fine. If you want to make sure, just use the email option to send yourself an email each time cron runs.