Setting up the WHMCS CRON job

WHMCS makes use of CRON to automate regular tasks, like syncing with domain registrars, suspending accounts and producing invoices.

WHMCS recommends that the cron.php task be set to run every 5 minutes.

You can find the specific CRON command to set up within your WHMCS install at WHMCS >> Setup >> Automation Settings

We have a separate guide on setting up cPanel CRON jobs.

The Cron command given by WHMCS should be split into two parts:

  • the first part: */5 * * * * - describes the frequency with which the command runs - when you're setting up the cPanel CRON job - select Once per 5 minutes from the Common Settings: drop-down
  • the second part: /usr/bin/php -q /home/whmcsdemo/crons/cron.php is the actual CRON command and should be copied and pasted into the cPanel CRON Command: field

WHMCS Documentation - Crons - external link opens in a new window

How did we do?

Powered by HelpDocs (opens in a new tab)
© Krystal Hosting Ltd 2002–