Below are samples from popular hosting control panels.

This functionality is only available using paid version of jNews

1 Setting up cron task on your cPanel

  1. Login to your Cpanel account
  2. Browse for Advance Tab located at the buttom
  3. Click on Cron Jobs
  4. Kindly enter your email address in Cron Email Tab, if you want to receive an email everytime the cron job runs.
  5. And click Update Email.
  6. Next, set your desired frequency of your cron in the "Add New Cron Job"
  7. Add this cron command curl "ADD the link here that you copied from Scheduler Tab of jApps" in command field.
  8. Then, click Add New Cron Job

cron-cpanel

2 Setting up the command line in Unix

There are different command line programs you can use to call the page from the command line. Not all of them may be available on a given server.

For example, you can use a Unix utility like 'wget':

wget -q -nd --delete-after 'ADD the CRON URL HERE'

The options:
-q = quiet (no message)
-nd = no directory
--delete-after = delete the downloaded file

Same with log file
wget -q -nd --delete-after 'ADD the CRON URL HERE' -O /home/public_html/cache/dull

When using SSL, add one additional argument when calling wget: --no-check-certificate.
Do not put “--no-check-certificate” between the -0 and the -.

*/15 * * * * /usr/bin/wget --no-check-certificate --quiet -O - 'ADD the CRON URL HERE'

Note in this example that the output is thrown away (to /home/public_html/cache/dull ).


A number of users of jNews have found that 'wget' sometimes fails. Especially if you have trouble with email digests not being sent on a daily basis to all users, an alternative command that solves the problem is:

php 'ADD the CRON URL HERE'

3 Set up your cron task using DirectAdmin

  1. Log into DirectAdmin as user
  2. At Advanced Features select Cronjobs

If you want a schedule every 10 minutes define as below:

Minute: */10
Hour: *
Day of Month: *
Month: *
Day of Week: *

Command: /usr/bin/curl -s -o /dev/null "ADD the CRON URL HERE"
Important are the quotes around the URL. Otherwise all looks perfect but mail will never be send.

4 Other most common ways to add a cron jobs;

  1. CPanel
  2. Plesk
  3. crontab

5 Set up your cron task on Windows

Creating a Scheduled Task

  1. Open Scheduler
  2. Go to Start >> Programs >> Accessories >> System Tools >> Scheduled Tasks
  3. Double-click Add Scheduled Task
  4. The Scheduled Task Wizard will appear. Click Next.
  5. Select the program to run. Choose your browser from the list (for example, Internet Explorer or Mozilla Firefox). Click Next.
  6. Give the task a Name, such as jNews Cron Job, and choose the Frequency with which to perform the task (for example, Daily)). Click Next.
  7. Choose specific date and time options (this step will vary, depending on the option selected in the previous step). When finished, click Next.
  8. Enter your password if prompted. Change the username if required (for example, you'd like the task to run under a user with fewer privileges security reasons). Click Next.
  9. On the final page, select the check box Open advanced properties for this task when I click Finish and click Finish.

Configuring the task

  1. Go to the task's setting page either by checking the check box at the end of the last step, or by double-clicking on the task.
  2. In the Run box, after the text that is there now (for example, C:Program FilesInternet Exploreriexplore.exe), enter a space and then type the address to your website's cron.php page in double
  3. To set a frequency more often than Daily (for example, hourly), click the Schedule tab, then click Advanced. Here you can set options such as Repeat task, every 1 hour for 23 hours. Click Ok when finished.
  4. Change the start time on the task to one minute from the current time. This will allow you to test the task and make sure that it is working.
  5. When all settings have been configured to your liking, click Apply and OK (note: you may be prompted for your password)