{"id":147,"date":"2014-07-07T06:47:09","date_gmt":"2014-07-07T04:47:09","guid":{"rendered":"http:\/\/servikus.com\/tutorials\/?p=147"},"modified":"2014-07-07T06:47:09","modified_gmt":"2014-07-07T04:47:09","slug":"setting-up-cron-jobs-in-cpanel","status":"publish","type":"post","link":"https:\/\/servikus.com\/tutorials\/setting-up-cron-jobs-in-cpanel\/","title":{"rendered":"Setting up cron jobs in cPanel"},"content":{"rendered":"<p>Cron job is a tool which allows you to schedule a certain command or script to be run at a specified time intervals. It comes in very handy if there is something you need done every hour, day, week, etc.<\/p>\n<p>This tutorial will teach how to properly set your cron jobs and have them up and running in no time.<\/p>\n<p><strong>Step 1<\/strong>: Log in your cPanel<\/p>\n<p><strong>Step 2<\/strong>: Locate and click on &#8220;<em>Cron Jobs<\/em>&#8221; icon. You can easily find it using &#8220;<em>search<\/em>&#8221; bar.<\/p>\n<p><a href=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_1.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-148\" src=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_1.png\" alt=\"Screenshot_1\" width=\"513\" height=\"175\" srcset=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_1.png 513w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_1-300x102.png 300w\" sizes=\"(max-width: 513px) 100vw, 513px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step 3<\/strong> (<em>optional<\/em>): cPanel gives you the\u00a0option to receive an e-mail every time your cron job runs. If you want to use that option just enter your e-mail address in &#8220;<em>Email<\/em>&#8221; field, and click on &#8220;<em>Update Email<\/em>&#8220;.<\/p>\n<p><a href=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_2.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-149\" src=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_2.png\" alt=\"Screenshot_2\" width=\"751\" height=\"220\" srcset=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_2.png 751w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_2-300x87.png 300w\" sizes=\"(max-width: 751px) 100vw, 751px\" \/><\/a><\/p>\n<p><strong>Step 4<\/strong>: Now you need to set time intervals for your script\/command to be executed. This is pretty straight forward. You will see fields for minutes, hours, days, months, and days of the week. You just need figure out at which time intervals you wish to run your scrip\/command, and set the desired time interval.<\/p>\n<p><a href=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_3.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-150\" src=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_3.png\" alt=\"Screenshot_3\" width=\"753\" height=\"334\" srcset=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_3.png 753w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_3-300x133.png 300w\" sizes=\"(max-width: 753px) 100vw, 753px\" \/><\/a><\/p>\n<p><em><strong>Hint<\/strong><\/em>: There is also &#8220;<em>Common Settings<\/em>&#8221; fields, giving you the option to set your crons to be executed at some of the common time intervals.<br \/>\n<em><strong>Another hint<\/strong><\/em>: Asterisk mark ( * ) means &#8220;<em>every<\/em>&#8220;.<br \/>\n<strong>Example<\/strong>: If you enter &#8221; * &#8221; in all fields then your cron job will be executed once every minute (<strong>example<\/strong>: picture above).<\/p>\n<p>Setting time intervals might seems a little confusing at first, but with little practice you will figure it out in no time.<br \/>\n<strong>Step 5<\/strong>: Enter your command in &#8220;<em>Command<\/em>&#8221; field. Make sure you don&#8217;t have any errors and that your command works properly.<br \/>\n<strong>Step 6<\/strong>: Click on &#8220;<em>Add New Cron Job<\/em>&#8221; icon.<\/p>\n<p><a href=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_4.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-151\" src=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_4.png\" alt=\"Screenshot_4\" width=\"753\" height=\"341\" srcset=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_4.png 753w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/07\/Screenshot_4-300x135.png 300w\" sizes=\"(max-width: 753px) 100vw, 753px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>That would be all. You have set up your new cron job successfully.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cron job is a tool which allows you to schedule a certain command or script to be run at a specified time intervals. It comes in very handy if there is something you need done every hour, day, week, etc. This tutorial will teach how to properly set your cron jobs and have them up&#8230; <a class=\"read-more\" href=\"https:\/\/servikus.com\/tutorials\/setting-up-cron-jobs-in-cpanel\/\">Read More<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/posts\/147"}],"collection":[{"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":4,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":155,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/posts\/147\/revisions\/155"}],"wp:attachment":[{"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}