Configuring and Troubleshooting WHMCS Crons

Over the years WHMCS has made some changes to where it stores certain directories, specifically directories outside of public_html. The goal of this is to increase overall security by moving sensitive files to a more protected location. While this change does help to improve WHMCS security, it also adds a few steps of complexity.

This article is meant to help simplify this complexity, or at least provide a reference configuration that you can use to troubleshoot cron issues, or gain a better understanding of WHMCS crons in general. I used WHMCS 7.3 for this article, but the general concept and instructions should apply for any 7.0 version of WHMCS.
Continue reading “Configuring and Troubleshooting WHMCS Crons”

How To Set up a Cron Job in cPanel

  1. This tutorial assumes you’ve already logged in to cPanel, and are starting on the home screen.

    cpanel-paperlantern-28-cron--01

  2. Now let’s learn how to setup a cron job.

    cpanel-paperlantern-28-cron--02

  3. Click the "Cron Jobs" icon.

    cpanel-paperlantern-28-cron--03

  4. Enter the email address where you want the cron job results sent after each time it runs.

    cpanel-paperlantern-28-cron--04

  5. Now you have to define exactly when and how often you want the cron job to run.

    cpanel-paperlantern-28-cron--05

  6. This is made easier by selecting one of the pre-defined common settings.

    cpanel-paperlantern-28-cron--06

  7. Notice that by choosing a common setting, all fields are filled in automatically. This also helps you understand what each field means.

    cpanel-paperlantern-28-cron--07

  8. Next, enter the command of the script you want to run, including the path (from root).

    cpanel-paperlantern-28-cron--08

  9. Then click "Add New Cron Job".

    cpanel-paperlantern-28-cron--09

  10. That’s it! The cron job has been set, and will be listed at the bottom of the screen.

 

How to Display (List) All Jobs in Cron / Crontab

Servers can automatically perform tasks that you would otherwise have to perform yourself, such as running scripts. On Linux servers, the cron utility is the preferred way to automate the running of scripts. In this article we’ll cover how to view the jobs scheduled in the crontab list. For an introduction to Cron check-out our KB: How To: Automate Server Scripts With Cron. Knowing how to setup crontab is an important skill, but even if you’re not editing these knowing how to view them is important as well. Continue reading “How to Display (List) All Jobs in Cron / Crontab”