> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://krystal-dev.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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**

![](https://storage.crisp.chat/users/helpdesk/website/96796a81092bc000/0adb6325-c1a6-400e-bd2e-d94a66_ee7orb.jpeg)

We have a separate guide on [setting up cPanel CRON jobs](/cpanel/setting-up-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](https://docs.whmcs.com/Crons)

* * *

* * *