How do I configure cron jobs in cPanel?


The cron job feature of cPanel allows you to schedule a particular task to run automatically at specified time intervals. For eg: If you want to run a PHP script or take the backup in regular intervals, you can use this feature.

How to add cron job?

To add cron job, follow the below steps:

1) Login to your cPanel account.
2) Click 'Cron Jobs' under 'Advanced' section as shown below

 

3)Under 'Cron Email', type the email address that you wish to receive the notifications and click 'Update Email'. Every time the cron job runs, an email notification will be send to specified mail address.


If you don't want to receive mails, then you should append >/dev/null 2>&1 to the end of command.

4) Under 'Add a New Cron Job', enter the details of interval to run your command.

If you select any option under from the drop down menu of 'Common Settings', cPanel fills the rest of values automatically.

If you want to specify your own time interval, select 'Common Settings' from drop down menu of 'Common Settings'

5) Enter your command that you wish to run in 'Command' box

6) Click 'Add New Cron Job'

Sample setting is shown below:

 

Please be extreme careful while adding any linux commands in command box.  You must understand the command before adding.

The created cron jobs will be listed in under 'Current Cron Job' as shown below

 

 

How to edit cron job?

You may follow below steps to edit cron job:

1) Click 'Cron Jobs' under 'Advanced' section

2) Under 'Current Cron Jobs',  Click 'edit' to the corresponding cron job

Make the changes that you want, and then click ' Edit Line'

 

How to delete Cron Job?

You may follow below steps to delete cron job:

1) Click 'Cron Jobs' under 'Advanced' section

2) Under 'Current Cron Jobs',  Click 'delete' to the corresponding cron job.

 

Last update:
2015-10-15 08:39
Author:
Bytehouse Technical Support
Revision:
1.6
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

top