How to Setup Cron Job in cPanel

Hello Everyone !!

Today we are going to see how to setup Cron job in cPanel. You not always sit in-front of system to do the task. Some time you have to do some task without user. That time you can schedule your task on time through Cron Jobs on linux. Now a days there so many automation tools available to perform it.

But in this articles, We are going set up Cron Jobs with help of cPanel.

Cron jobs allow you to automate certain commands or scripts on your site. You can set a command or script to run at a specific time every day, week, etc. For example, you could set a cron job to delete temporary files every week to free up disk space.

Now let’s see how to do it.

Step 1 : Login to your cPanel.

Step 2 : You can find Cron Jobs under Advanced option Or  type Cron Jobs on search box.

Step 3 : Once you entered, You can find numerous options to setup Cron Jobs.

a ) Email :

You can update emails address to send an email with output every time the cron job runs.  Else If you do not want an email to be sent for an individual cron job, you can redirect the command’s output to /dev/null. For example :
mycommand >/dev/null 2>&1

b ) Add New Cron Job:

In Common settings, You can set any specific time on when command will be executed.


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 option allows you to select a commonly-used interval. The system will configure the appropriate settings in the MinuteHourDayMonth, and Weekday text boxes for you.

Note :

If the wildcard characters (*) and intervals confuse you, this menu is an excellent way to learn how to configure the other fields.

Minute : This Option allows you to configure the minute of each hour on which the command should run.

Hour : This Option allows you to configure the hour of each day on which the command should run.

Day : This Option allows you to configure the day of each month on which the command should run.

Month : This Option allows you to configure 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.

Command Text Box :

In Command text box, you have enter the full command that you want execute on the schedule the time.

Example :

Edit a Cron Job :

Click the Edit settings on the cron Job under current cron Jobs that you wish to change.

Delete a Cron Job :

Click delete option on the right end of the cron job.


Hope this tutorial help you configure cron jobs on cPanel 🙂






View all posts by

Leave a Reply

Your email address will not be published. Required fields are marked *