This knowledgebase post describes how to use cPanel to configure Cron Jobs for your website. Using Cron Jobs, you can schedule commands that can be run at specific intervals you specify.
What is a Cron Job?
A Cron Job is simply a task that is scheduled to run automatically at specific intervals. For example, if you want to make a copy of a file after every six hours, you can configure this using Cron Jobs in cPanel.
Adding a Cron Job
To add a scheduled task, follow these steps:
- In the advanced section of the main screen of cPanel, click on Cron Jobs.
- In the email box, type the email address on which you want to receive notifications, and then click Update email. Each time the task is executed, the email account will receive a message.
- In “Add new Cron job”, enter the interval for the command you want.
- In the command text box, type the command you want to execute.
- Click “Add New Cron Job”.
Editing a Cron Job
To edit a Cron Job, follow these steps:
- In advanced cPanel home screen section, click Cron Jobs.
- Click “edit button” to edit the Cron Job.
- Make the changes you want, and then save the changes.
Deleting a Cron Job
You can delete a Cron Job when you no longer want to run the command automatically.
To delete a scheduled task, follow these steps:
- In the advanced section of the main screen of cPanel, click on Cron Jobs.
- Click on “Delete Icon” to delete the Cron Job.
- To confirm that you want to delete Cron Job, click Delete.