Cron Jobs run scheduled tasks at specific times. This is good to set up automated maintenance and other unmanned server duties.
To create a cron job:
- Log into cPanel.
- In the Advanced section, click Cron Jobs.
- Make sure the current email address is valid. If not, enter a new valid email and click Update Email. You will receive an email after the cron job has finished.
- Use the Common Settings to choose from a list of regularly used intervals or set the frequency of your cron job by using the drop-down box next to each setting. Common settings range from every minute to once a year.
- Enter in the desired command and click the Add New Cron Job button.
You have just created a cron job to execute a file at a certain time and date with the desired repetition.
Remove or Edit a Cron Job
- Click the Cron Jobs icon inside cPanel.
- Scroll down to the last section called "Current Cron Jobs."
- Find the correct cron job and click either Edit or Delete under Actions.
Note: The edit panel has fewer common settings to choose from, so if you are having trouble getting the correct interval, copy the command, delete the cron job and then recreate it using the Add New Cron Job section.
For more detailed information on how cron works, please see: