How to set up the WHMCS Cron Job using cPanel?

In order for WHMCS to be able to perform automated tasks such as invoicing and account suspension, you must first set up what’s known as a cron job.

This can be done in many common control panels such as cPanel, which is what we’ll be using for this tutorial and the following video tutorial, which you will find here

  1. Before going into cPanel, first log into WHMCS admin panel and click on Setup.setup-from-whmcs
  2. Click Automation Settings.select-automation-settings-from-the-drop-down-menu
  3. WHMCS provides you with the command necessary to run the cron job using PHP. Copy the command.automation-setting-copy-php-code
  4. Proceed to cPanel. Scroll down to find the Cron Jobs link and click on it.click-on-cron-jobs-in-cpanel
  5. Here, you can enter the e-mail address to which the cron job will send output, if any.send-an-email-every-time-acron-job-runs
  6. Click more link to enter/modify email address.click-on-more-link
  7. There is no email set to receive notifications. Let’s set one.set-email-toreceive-cron-mail
  8. Click Update Email.click-on-update-email
  9. Now let’s scroll down a little to setup the cron job. Paste the command here.paste-cron-job-command-here
  10. You can set time yourself or can choose from drop down.click-on-common-settings
  11. In this case, for WHMCS we need to set cron job run daily, so select once a day.select-once-a-day-for-the-cron-to-run
  12. Click Add New Cron Job.click-on-add-new-cron-job

That’s it! You now know how to set up the WHMCS cron job in cPanel.

Setting up WHMCS Cron Jobs usin cPanel