Setting up cronjobs for Feed imports in cpanel

To setup the feed imports to import feeds at every X interval, you will need to create a cronjob for the feeds.

Step 1 - Accessing your cpanel

Setting up cronjobs in Cpanel is really easy. All you need to do is to login to your cPanel account and click on the Cronjobs icon as shown in the diagram below.

Step 2 - Creating the cronjob

Upon clicking on the cronjob icon, you will be presented with the following screen. You will need to enter the following,

The settings are broken down into the following:-

  • Minute - Enter the interval for minute. The example above uses "*/5" which means the script is executed every 5 minutes
  • Hour - Enter the interval for minute. The example above uses "*" which means the script is executed every hour
  • Day - Enter the interval for minute. The example above uses "*" which means the script is executed every day
  • Month - Enter the interval for minute. The example above uses "*" which means the script is executed every month
  • Weekday - Enter the interval for minute. The example above uses "*" which means the script is executed every week
  • Command - In the example above, we are running the following command,

    /bin/wget -O /dev/null "http://stackideas.com/index.php?option=com_easyblog&task=cronfeed"

    You will need to get the correct path to "wget". Not every hosting has it in /bin/wget