How to set up cron jobs in cPanel

Overview

This article shows you how to Set up Cron jobs in cPanel for your website in cPanel. By creating a Cron Job, you can schedule commands to run at intervals that you specify.

What is a Cron Job?

Cron Jobs allows you to run a command at a time you specify. For example, you can set Cron to delete temporary files every week from the disk space.

Create and schedule Cron Job 

  1. Login to your cPanel.
  2. At the ADVANCED section, and click Cron Jobs icon.
  3. Under Cron Email, type the e-mail address where you want to receive notifications.
  4. Click Update Email. Every time the Cron job runs, the e-mail account receives a message.
  5. Common Settings: This option allows you to specify a predefined period of time to run a Cron job. If you do not choose one of the general preset settings, choose from other options:
    • Common settings — here, you can select one of the most commonly used intervals. If you choose one option from the drop-down, the system will configure the settings in the Minute, Hour, Day, Month, and Weekday boxes for you:
    • Minute — indicates the number of minutes between each Cron job or the minute of the hour that you have set for the Cron job;
    • Hour — indicates the number of hours between jobs, or the hour on the days that you have set for your cron jobs;
    • Day — indicates the number of days between cron jobs, or the day of a month, on which you have cron jobs set;
    • Month — indicates the number of months between jobs or the month of the year when you want to run the cron job;
    • Weekday — sets the weekly schedule when you wish to run the Cron job.

6. Finally, click Add New Cron Job.

Share this:
FacebookTwitterWhatsAppViberCopy LinkTelegramLinkedIn
Updated on September 17, 2020

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support