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
- Login to your cPanel.
- At the ADVANCED section, and click Cron Jobs icon.
- Under Cron Email, type the e-mail address where you want to receive notifications.
- Click Update Email. Every time the Cron job runs, the e-mail account receives a message.
- 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.