{"id":5448,"date":"2021-01-18T05:15:37","date_gmt":"2021-01-18T05:15:37","guid":{"rendered":"http:\/\/www.webhosting.uk.com\/kb\/?p=5448"},"modified":"2025-07-03T11:32:04","modified_gmt":"2025-07-03T11:32:04","slug":"how-to-set-up-a-cron-job-in-cpanel","status":"publish","type":"post","link":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/","title":{"rendered":"How to set up a cron job in cPanel"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">A cron job is a helpful process that allows you to automate several essential web hosting tasks by setting up a command to run at scheduled intervals. This can include tasks like backing up your website or checking for updates.<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>Advisory guidance<\/strong><\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">While setting up a cron job is simple to do, it does require you to have a good knowledge of Linux commands. To avoid problems that can affect your website, we advise customers to check their script with our support team before they create a new cron job.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>To set up a cron job, follow these instructions:<\/strong><\/p>\r\n\r\n\r\n\r\n<ol>\r\n<li>Log in to <strong>cPanel.<\/strong><\/li>\r\n<li>scroll down to the <strong>Advanced<\/strong>\u00a0section and click the\u00a0<strong>Cron Jobs<\/strong>\u00a0icon.<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2021\/01\/Screenshot-243.png\" alt=\"Cron Jobs\" width=\"373\" height=\"149\" \/><\/li>\r\n<li>Option to change a notification email address. cPanel will send you an email notification every time the cron job runs. This will help you discover if the cron job fails to run. Your default email is listed in the <strong>Cron Email\u00a0section<\/strong>. If you wish the notification to be sent to a different email address, type that address into the field below and click on the\u00a0<strong>Update Email<\/strong> box.<\/li>\r\n<li>Next, scroll to the\u00a0<strong>Add New Cron Job<\/strong>\u00a0section.<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2021\/01\/Screenshot-245.png\" alt=\"Add New Cron Job\" width=\"580\" height=\"451\" \/><\/li>\r\n<li>Here, you can set the frequency at which you want the cron job to operate. To simplify the setup, you can either select an option from the <strong>Common Settings<\/strong> in the dropdown menus or input your values.<br \/>If you are not familiar with the input values, we recommend only using the common settings.<br \/>There is a general <strong>Common Settings<\/strong> dropdown at the top (for running jobs once per minute, hour, month, etc.) and common settings for each of the other options. For example, you can choose which time of the day, days of the week, etc. a cron job runs.<br \/><br \/>The example below shows a cron job set to run on the 1<sup>st<\/sup>\u00a0and 15<sup>th<\/sup>\u00a0days of each month.<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2021\/01\/Screenshot-247.png\" alt=\"Common Settings\" width=\"567\" height=\"346\" \/><br \/><br \/><strong>Warning<\/strong>: If you run a cron job too frequently, it can reduce the performance of your server. cPanel recommends that you only run cron jobs once per day.<\/li>\r\n<li>Once you have set the frequency of the cron job, the next task is to input the command. Enter this in the <strong>Command<\/strong> field.<\/li>\r\n<li>When finished, click the\u00a0<strong>Add New Cron Job<\/strong>\u00a0button. A confirmation will appear to confirm that the cron job has been added. The cron job will then appear in the\u00a0<strong>Current Cron Jobs<\/strong>\u00a0section at the bottom of the page and you will receive a notification email every time it runs.\u00a0<\/li>\r\n<\/ol>\r\n<p class=\"wp-block-paragraph\">That&#8217;s it!! This is the easiest way to schedule tasks. However , You can also <a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-wordpress-cron-job-using-the-command-line\/\">Set up Cron job using the command line<\/a> that helps to increase the overall performance of website and can streamline and automate various tasks.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>A cron job is a helpful process that allows you to automate several essential web hosting tasks by setting up a command to run at scheduled intervals. This can include&hellip;<\/p>\n<p><a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/\" class=\"more-link\">Read More<\/a><\/p>\n<div class='heateorSssClear'><\/div><div  class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' data-heateor-sss-href='https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/'><div class='heateor_sss_sharing_title' style=\"font-weight:bold\" >Spread the love<\/div><div class=\"heateor_sss_sharing_ul\"><a aria-label=\"Facebook\" class=\"heateor_sss_facebook\" href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-set-up-a-cron-job-in-cpanel%2F\" title=\"Facebook\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg\" style=\"background-color:#0765FE;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"X\" class=\"heateor_sss_button_x\" href=\"https:\/\/twitter.com\/intent\/tweet?text=How%20to%20set%20up%20a%20cron%20job%20in%20cPanel%20-%20WHUK&url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-set-up-a-cron-job-in-cpanel%2F\" title=\"X\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_x\" style=\"background-color:#2a2a2a;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg width=\"100%\" height=\"100%\" style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M21.751 7h3.067l-6.7 7.658L26 25.078h-6.172l-4.833-6.32-5.531 6.32h-3.07l7.167-8.19L6 7h6.328l4.37 5.777L21.75 7Zm-1.076 16.242h1.7L11.404 8.74H9.58l11.094 14.503Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"Linkedin\" class=\"heateor_sss_button_linkedin\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-set-up-a-cron-job-in-cpanel%2F\" title=\"Linkedin\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_linkedin\" style=\"background-color:#0077b5;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path d=\"M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z\" fill=\"#fff\"><\/path><\/svg><\/span><\/a><\/div><div class=\"heateorSssClear\"><\/div><\/div><div class='heateorSssClear'><\/div>","protected":false},"author":28,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[880],"tags":[208],"class_list":["post-5448","post","type-post","status-publish","format-standard","hentry","category-cpanel","tag-cpanel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.9 (Yoast SEO v27.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to set up a cron job in cPanel - WHUK<\/title>\n<meta name=\"description\" content=\"Automate tasks with Cron Jobs in cPanel. Our guide offers step-by-step instructions for setting up scheduled tasks, and optimising website maintenance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to set up a cron job in cPanel - WHUK\" \/>\n<meta property=\"og:description\" content=\"Automate tasks with Cron Jobs in cPanel. Our guide offers step-by-step instructions for setting up scheduled tasks, and optimising website maintenance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Webhosting UK Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhostingukcom\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-18T05:15:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-03T11:32:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2021\/01\/Screenshot-243.png\" \/>\n<meta name=\"author\" content=\"Victor G\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to set up a cron job in cPanel - WHUK\" \/>\n<meta name=\"twitter:description\" content=\"Automate tasks with Cron Jobs in cPanel. Our guide offers step-by-step instructions for setting up scheduled tasks, and optimising website maintenance.\" \/>\n<meta name=\"twitter:creator\" content=\"@WebhostingUKcom\" \/>\n<meta name=\"twitter:site\" content=\"@WebhostingUKcom\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-set-up-a-cron-job-in-cpanel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-set-up-a-cron-job-in-cpanel\\\/\"},\"author\":{\"name\":\"Victor G\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\"},\"headline\":\"How to set up a cron job in cPanel\",\"datePublished\":\"2021-01-18T05:15:37+00:00\",\"dateModified\":\"2025-07-03T11:32:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-set-up-a-cron-job-in-cpanel\\\/\"},\"wordCount\":463,\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-set-up-a-cron-job-in-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/Screenshot-243.png\",\"keywords\":[\"cPanel\"],\"articleSection\":[\"cPanel &amp; WHM\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-set-up-a-cron-job-in-cpanel\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-set-up-a-cron-job-in-cpanel\\\/\",\"name\":\"How to set up a cron job in cPanel - WHUK\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-set-up-a-cron-job-in-cpanel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-set-up-a-cron-job-in-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/Screenshot-243.png\",\"datePublished\":\"2021-01-18T05:15:37+00:00\",\"dateModified\":\"2025-07-03T11:32:04+00:00\",\"description\":\"Automate tasks with Cron Jobs in cPanel. Our guide offers step-by-step instructions for setting up scheduled tasks, and optimising website maintenance.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-set-up-a-cron-job-in-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-set-up-a-cron-job-in-cpanel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-set-up-a-cron-job-in-cpanel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/Screenshot-243.png\",\"contentUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/Screenshot-243.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-set-up-a-cron-job-in-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to set up a cron job in cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"name\":\"Webhosting UK Knowledge Base\",\"description\":\"Expert Insights on Hosting, Development, Security, Marketing, and SEO\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"alternateName\":\"WHUK\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\",\"name\":\"Webhosting UK\",\"alternateName\":\"WHUK\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"width\":1200,\"height\":628,\"caption\":\"Webhosting UK\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/webhostingukcom\",\"https:\\\/\\\/x.com\\\/WebhostingUKcom\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/webhostinguk\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/webhosting-uk-com-ltd\\\/\",\"https:\\\/\\\/www.instagram.com\\\/webhosting_uk\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@webhostinguk\"],\"description\":\"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.\",\"email\":\"sales@webhosting.uk.com\",\"telephone\":\"0800 862 0890\",\"legalName\":\"Webhosting UK\",\"foundingDate\":\"2001-02-07\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"51\",\"maxValue\":\"200\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\",\"name\":\"Victor G\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"caption\":\"Victor G\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to set up a cron job in cPanel - WHUK","description":"Automate tasks with Cron Jobs in cPanel. Our guide offers step-by-step instructions for setting up scheduled tasks, and optimising website maintenance.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/","og_locale":"en_GB","og_type":"article","og_title":"How to set up a cron job in cPanel - WHUK","og_description":"Automate tasks with Cron Jobs in cPanel. Our guide offers step-by-step instructions for setting up scheduled tasks, and optimising website maintenance.","og_url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/","og_site_name":"Webhosting UK Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/webhostingukcom","article_published_time":"2021-01-18T05:15:37+00:00","article_modified_time":"2025-07-03T11:32:04+00:00","og_image":[{"url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2021\/01\/Screenshot-243.png","type":"","width":"","height":""}],"author":"Victor G","twitter_card":"summary_large_image","twitter_title":"How to set up a cron job in cPanel - WHUK","twitter_description":"Automate tasks with Cron Jobs in cPanel. Our guide offers step-by-step instructions for setting up scheduled tasks, and optimising website maintenance.","twitter_creator":"@WebhostingUKcom","twitter_site":"@WebhostingUKcom","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/#article","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/"},"author":{"name":"Victor G","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297"},"headline":"How to set up a cron job in cPanel","datePublished":"2021-01-18T05:15:37+00:00","dateModified":"2025-07-03T11:32:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/"},"wordCount":463,"publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2021\/01\/Screenshot-243.png","keywords":["cPanel"],"articleSection":["cPanel &amp; WHM"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/","url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/","name":"How to set up a cron job in cPanel - WHUK","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2021\/01\/Screenshot-243.png","datePublished":"2021-01-18T05:15:37+00:00","dateModified":"2025-07-03T11:32:04+00:00","description":"Automate tasks with Cron Jobs in cPanel. Our guide offers step-by-step instructions for setting up scheduled tasks, and optimising website maintenance.","breadcrumb":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/#primaryimage","url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2021\/01\/Screenshot-243.png","contentUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2021\/01\/Screenshot-243.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-set-up-a-cron-job-in-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhosting.uk.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to set up a cron job in cPanel"}]},{"@type":"WebSite","@id":"https:\/\/www.webhosting.uk.com\/kb\/#website","url":"https:\/\/www.webhosting.uk.com\/kb\/","name":"Webhosting UK Knowledge Base","description":"Expert Insights on Hosting, Development, Security, Marketing, and SEO","publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"alternateName":"WHUK","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhosting.uk.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization","name":"Webhosting UK","alternateName":"WHUK","url":"https:\/\/www.webhosting.uk.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","contentUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","width":1200,"height":628,"caption":"Webhosting UK"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhostingukcom","https:\/\/x.com\/WebhostingUKcom","https:\/\/www.youtube.com\/c\/webhostinguk","https:\/\/www.linkedin.com\/company\/webhosting-uk-com-ltd\/","https:\/\/www.instagram.com\/webhosting_uk\/","https:\/\/www.tiktok.com\/@webhostinguk"],"description":"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.","email":"sales@webhosting.uk.com","telephone":"0800 862 0890","legalName":"Webhosting UK","foundingDate":"2001-02-07","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"51","maxValue":"200"}},{"@type":"Person","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297","name":"Victor G","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","caption":"Victor G"}}]}},"_links":{"self":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/5448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/comments?post=5448"}],"version-history":[{"count":8,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/5448\/revisions"}],"predecessor-version":[{"id":20056,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/5448\/revisions\/20056"}],"wp:attachment":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/media?parent=5448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/categories?post=5448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/tags?post=5448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}