To create the Cron Jobs do the following:
- Log into cPanel
- Go to Advanced section > click on Cron Job
- The Cron Email section of the interface allows you to enter an email address for the system to send notifications when your cron jobs run.
To set an email address
- In the Email text box, enter the email address at which you wish to receive the notifications.
- Click Update Email.
- Cron jobs are scheduled tasks that take place at predefined times or intervals on the server. Set the following variables to configure the cPanel &
WHM Cron Jobs below:
- Select the interval at which you wish to run the cron job from the appropriate menus, or enter the values in the text boxes.
Common Settings — This menu allows you to select a commonly- used interval. The system will configure the appropriate settings in the
Minute, Hour, Day, Month, and Weekday text boxes for you.
Minute — Use this menu to select the number of minutes between each time the cron job runs, or the minute of each hour on which you wish to run the cron job.
Hour — Use this menu to select the number of hours between each time the cron job runs, or the hour of each day on which you wish to run the cron job.
Day — Use this menu to select the number of days between each time the cron job runs, or the day of the month on which you wish to run the cron job.
Month — Use this menu to select the number of months between each time the cron job runs, or the month of the year in which you wish to run the cron job.
Weekday — Use this menu to select the days of the week on which you wish to run the cron job
- In the Command text box, enter the command that you wish the system to run.
- Specify the absolute path to the command that you wish to run.
For example, if you wish to run the public_html/index.php file in your home directory, enter the following command: /home/user/public_html/index.php
- To disable notifications for a specific cron job, add the following line to the command: >/dev/null 2>&1
- Click on “Add New Cron Job”