Skip to main content

Documentation

IMPORTANT

This is the outdated SI-documentation which will be adapted soon. A huge part may be obsolete!

Setting Up Cronjobs In Cpanel

Cronjobs is a schedule command/task that is executed on your server to run automatically at a specified time and date. A cronjob is a schedule task itself and it is very useful to automate repetitive tasks. For example, it allows email processing to run independently while not interfering with site operations. It is recommended in Komento to use cronjobs to parse emails as well as sending out notifications.

Configuration

Setting up cronjobs in cPanel is relatively easy. All you'll need to do is to login to your cPanel account and access dashboard. Locate and click cronjobs icon as shown in the screenshot below.

Cpanel

Next, you'll be presented with the following screen. You'll need to enter the following configuration to setting up the cronjob.

Cpanel

The settings displayed above 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'll need to get the correct wget path and replace the domain name above with your site's domain. Every webhosting might have a different /bin/wget. Please consult with your webhosting for further explanation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience. You can decide whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.