Configure cPanel Cron Jobs

For WHM version 11.40

(Home >> Server Configuration >> Configure cPanel Cron Jobs)

Overview

The Configure cPanel Cron Jobs interface allows you to configure the upcp and cpbackup cron jobs on your cPanel & WHM server. Cron jobs are scheduled tasks that take place at predefined times or intervals on the server.

ALERT! Warning: Cron jobs that run too frequently can slow down your server. We recommend that you run cron jobs once per day.

Configure a cron job

To configure a cPanel cron job:

  1. Enter the desired intervals for the cron job you wish to configure.
  2. Click Commit.

Cron job intervals

Set the following variables to configure each cPanel & WHM cron job:

  • Minute — Enter the number of minutes between each execution of the cron job, or the minute of each hour on which you wish to run the cron job. For example, enter 15 to run the cron job every 15 minutes.
  • Hour — Enter the number of hours between each execution of the cron job, or the hour each day (in military format) at which you wish to run the cron job. For example, enter 2100 to run the cron job at 9:00pm local time.
  • Day — Enter the number of days between each execution of the cron job, or the day of the month on which you wish to run the cron job. For example, enter 15 to run the cron job on the 15th of the month.
  • Month — Enter the number of months between each execution of the cron job, or the month of the year in which you wish to run the cron job. For example, enter 7 to run the cron job in July.
  • Weekday — Enter the day(s) of the week on which you wish to run the cron job. For example, a value of 0 indicates Sunday, or a value of 6 indicates Saturday.
  • For any of these settings, enter * to indicate that the cron job should run at all intervals.

For example, a process set to run every day at 21:15 (or 9:15pm in 12-hour format) would be set to Minute = 15, Hour = 21, Day = *, Month = *, Weekday = *.

Command: upcp

The upcp script updates cPanel & WHM. By default, upcp is set to run at a random time between 9:00pm and 6:00am local time. You may set this script to run at any time you wish.

PICK Important: We recommend that you set upcp to run once per day during off-peak hours.

Command: cpbackup

The cpbackup script runs backups on your server. By default, this script runs at 1:00am local time, because this is an off-peak time for most servers. If you have backups disabled, the script will immediately exit after it runs.

PICK Important: We recommend that you set cpbackup to run during off-peak hours. Make sure that cpbackup runs early enough to allow your server to finish backups before peak traffic resumes.

Topic revision: r1 - 19 Sep 2013 - 16:29:01 - Main.SarahHaney