Cronjobs

Here, you will learn how to easily setup cronjobs for Komento.

Setting Up Cronjob In CPanel

Cronjob allows email processing to run at the back end while not interfering with the site operations. In Komento, cronjob are required to parse emails as well as sending out emails.


Step 1

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

Cpanel

Step 2

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

Cpanel

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://yousite.com/index.php?option=com_komento&task=cron"
    

    You will need to get the correct wget path and replace the domain name above with your site's domain. Every hosting has a different /bin/wget. Please consult with your hosting provider for further explanation.