How to Change Cron Time on VPS cPanel

By 06-08-2009   Domain HostingTutorials

I was trying to change our server cron timings which is usually set at 1AM. But when you change your server time to match your own local time, the Cron activities still continue at 1AM.  So how can you change the cron timing on your VPS Cpanel?

1. Go to WHM >> cPanel >> Manage Plugins

2. Install the cronconfig cPanel plugin which allow users to edit cPanel cron settings/program run times.

cronconfig plugin

3. Now refresh the WHM, you will find the plugin option loaded in the bottom of the left panel.

cron-plugin

4. Set Cron timeWHM >> Plugins >> Configure cPanel Cron Times

cronconfig options

upcp is the program that updates cPanel and it is recommended to run this script once a day. It has, by default, been set to a random time between 9pm and 6am local time. cpbackupcpbackup is the program used to run backups on your server and set by default to run at 1am. However, it is a good idea to set these cron jobs to run at an off peak time of your site.

Setting cron time – Remember the Hour is always set in military time;  Day set to 15 means 15th day of the month; Month is coded as 1=January and 12=December; and weekdays are noted as 0=Sunday and 6=Saturday.

Here is what sample settings mean – Minute = 47; Hour = 1; Day = *; Month = *; Weekday = *. This process would run everyday at 01:47AM.  Have you set you server cron functions at non peak hours?

 

2 comments on “How to Change Cron Time on VPS cPanel

  1. Knoxville Website Design says:

    I don’t mess around with cron jobs too much, but this will come in handy this year with a few projects I have planned. Thanks!

  2. Web Threads says:

    Just what I was looking for, thanks!

Leave a Reply

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

css.php