{"id":25127,"date":"2026-07-09T13:30:42","date_gmt":"2026-07-09T11:30:42","guid":{"rendered":"https:\/\/kunskap.websupport.se\/?post_type=ht_kb&#038;p=25127"},"modified":"2026-07-09T13:30:44","modified_gmt":"2026-07-09T11:30:44","slug":"cron-jobs","status":"publish","type":"ht_kb","link":"https:\/\/kunskap.websupport.se\/en\/kb\/cron-jobs\/","title":{"rendered":"CRON Jobs"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Guide for experienced users<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Cron is a program that runs on our servers which you can configure to run tasks at specific times. Use it to update databases, perform regular backups, download information from the internet, and more.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>CRON jobs<\/strong> are very useful for automating repetitive tasks. For example, you can run a script once a week to delete temporary files and free up space. Some programs, like Drupal, require CRON tasks to work properly. Cron runs your script at a specific time. You can set up multiple types of crons on our servers. Configure Cron through our WebAdmin interface.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to <a href=\"https:\/\/admin.websupport.se  \">https:\/\/admin.websupport.se<\/a><\/li>\n\n\n\n<li>Select the domain for which you want to set up Cron in the Services section<\/li>\n\n\n\n<li>In the left menu, click CRON Jobs, then click the blue Create a New CRON Task button in the top right<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"783\" height=\"319\" src=\"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_FYRnBu1iuX-783x319.png\" alt=\"\" class=\"wp-image-20225\" srcset=\"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_FYRnBu1iuX-783x319.png 783w, https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_FYRnBu1iuX-50x20.png 50w, https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_FYRnBu1iuX-1536x626.png 1536w, https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_FYRnBu1iuX-60x24.png 60w, https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_FYRnBu1iuX-100x41.png 100w, https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_FYRnBu1iuX.png 1723w\" sizes=\"auto, (max-width: 783px) 100vw, 783px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">Description of CRON parameters (WGET)<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>1. Cron Type<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">You can run CRON jobs either as a PHP script on your server or as any web address.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For HTTP, enter something like https:\/\/domain.se\/scripts\/cron.php?variable=value<\/li>\n\n\n\n<li>For a PHP script, enter the relative path from the domain (web\/scripts\/cron.php). See the guide section below for more details<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>2. Repeat<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Cron uses specific syntax to set when it runs. It uses standard Unix crontab format [minutes] [hours] [day of month] [month] [day of week]. Use this page to easily set your desired time: https:\/\/www.openjs.com\/scripts\/jslibrary\/demos\/crontab.php<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Time examples in advanced settings<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Every minute\n* * * * *\n\nEvery 5 minutes\n*\/5 * * * *\n\nEvery hour at minute 30\n30 * * * *\n\nEvery day at midnight\n0 0 * * *\n\nSunday at 12:00\n0 12 * * 0 or\n0 12 * * 7\n\nWeekdays at 12:00 except weekends\n0 12 * * 1,2,3,4,5<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Allowed time values<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Minutes: 0-59<\/li>\n\n\n\n<li>Hours: 0-23<\/li>\n\n\n\n<li>Day of month: 1-31<\/li>\n\n\n\n<li>Month: 1-12<\/li>\n\n\n\n<li>Day of week: 0-7 (0 and 7 are Sunday)<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>3. Script path or HTTP link<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the URL you want CRON to request regularly. Enter it in a format like https:\/\/domain.se\/scripts\/cron.php?key=value<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>4. Send result by email?<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">You can be notified by email when the cron runs. Select the option to send output to email. Alternatively, send email only if the cron produces output.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>5. Comment<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">For your own reference, such as better tracking of CRON tasks. Only shows in this admin interface.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>6. Active task<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">This checkbox enables or disables the CRON task.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Description of CRON parameters (PHP)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The repeat settings and allowed values are the same. Unlike WGET cron, you also specify script parameters. You can set a maximum of four parameters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example URL: https:\/\/www.domain.tld\/index.php?option=com_unpaidreminder&amp;tmpl=component&amp;s=XxNBsQrfSr<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"888\" src=\"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_uE8c2YQB8X.png\" alt=\"\" class=\"wp-image-20227\" srcset=\"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_uE8c2YQB8X.png 727w, https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_uE8c2YQB8X-41x50.png 41w, https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_uE8c2YQB8X-49x60.png 49w, https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_uE8c2YQB8X-82x100.png 82w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Guide for experienced users Cron is a program that runs on our servers which you can configure to run tasks at specific times. Use it to update databases, perform regular backups, download information from the internet, and more. CRON jobs are very useful for automating repetitive tasks. For example, you&#8230;<\/p>\n","protected":false},"author":44,"template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[424],"ht-kb-tag":[],"class_list":["post-25127","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-web-and-php-settings"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CRON Jobs - Websupport kunskapsdatabas<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kunskap.websupport.se\/en\/kb\/cron-jobs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CRON Jobs - Websupport kunskapsdatabas\" \/>\n<meta property=\"og:description\" content=\"Guide for experienced users Cron is a program that runs on our servers which you can configure to run tasks at specific times. Use it to update databases, perform regular backups, download information from the internet, and more. CRON jobs are very useful for automating repetitive tasks. For example, you...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kunskap.websupport.se\/en\/kb\/cron-jobs\/\" \/>\n<meta property=\"og:site_name\" content=\"Websupport kunskapsdatabas\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-09T11:30:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_FYRnBu1iuX.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1723\" \/>\n\t<meta property=\"og:image:height\" content=\"702\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/cron-jobs\\\/\",\"url\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/cron-jobs\\\/\",\"name\":\"CRON Jobs - Websupport kunskapsdatabas\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/cron-jobs\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/cron-jobs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kunskap.websupport.se\\\/app\\\/uploads\\\/sites\\\/4\\\/2021\\\/11\\\/chrome_FYRnBu1iuX-783x319.png\",\"datePublished\":\"2026-07-09T11:30:42+00:00\",\"dateModified\":\"2026-07-09T11:30:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/cron-jobs\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/cron-jobs\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/cron-jobs\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kunskap.websupport.se\\\/app\\\/uploads\\\/sites\\\/4\\\/2021\\\/11\\\/chrome_FYRnBu1iuX-783x319.png\",\"contentUrl\":\"https:\\\/\\\/kunskap.websupport.se\\\/app\\\/uploads\\\/sites\\\/4\\\/2021\\\/11\\\/chrome_FYRnBu1iuX-783x319.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/kb\\\/cron-jobs\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kunskap.websupport.se\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CRON Jobs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/\",\"name\":\"Websupport kunskapsdatabas\",\"description\":\"Websupport kunskapsdatabas\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kunskap.websupport.se\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CRON Jobs - Websupport kunskapsdatabas","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:\/\/kunskap.websupport.se\/en\/kb\/cron-jobs\/","og_locale":"en_US","og_type":"article","og_title":"CRON Jobs - Websupport kunskapsdatabas","og_description":"Guide for experienced users Cron is a program that runs on our servers which you can configure to run tasks at specific times. Use it to update databases, perform regular backups, download information from the internet, and more. CRON jobs are very useful for automating repetitive tasks. For example, you...","og_url":"https:\/\/kunskap.websupport.se\/en\/kb\/cron-jobs\/","og_site_name":"Websupport kunskapsdatabas","article_modified_time":"2026-07-09T11:30:44+00:00","og_image":[{"width":1723,"height":702,"url":"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_FYRnBu1iuX.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kunskap.websupport.se\/en\/kb\/cron-jobs\/","url":"https:\/\/kunskap.websupport.se\/en\/kb\/cron-jobs\/","name":"CRON Jobs - Websupport kunskapsdatabas","isPartOf":{"@id":"https:\/\/kunskap.websupport.se\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kunskap.websupport.se\/en\/kb\/cron-jobs\/#primaryimage"},"image":{"@id":"https:\/\/kunskap.websupport.se\/en\/kb\/cron-jobs\/#primaryimage"},"thumbnailUrl":"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_FYRnBu1iuX-783x319.png","datePublished":"2026-07-09T11:30:42+00:00","dateModified":"2026-07-09T11:30:44+00:00","breadcrumb":{"@id":"https:\/\/kunskap.websupport.se\/en\/kb\/cron-jobs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kunskap.websupport.se\/en\/kb\/cron-jobs\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kunskap.websupport.se\/en\/kb\/cron-jobs\/#primaryimage","url":"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_FYRnBu1iuX-783x319.png","contentUrl":"https:\/\/kunskap.websupport.se\/app\/uploads\/sites\/4\/2021\/11\/chrome_FYRnBu1iuX-783x319.png"},{"@type":"BreadcrumbList","@id":"https:\/\/kunskap.websupport.se\/en\/kb\/cron-jobs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kunskap.websupport.se\/"},{"@type":"ListItem","position":2,"name":"CRON Jobs"}]},{"@type":"WebSite","@id":"https:\/\/kunskap.websupport.se\/en\/#website","url":"https:\/\/kunskap.websupport.se\/en\/","name":"Websupport kunskapsdatabas","description":"Websupport kunskapsdatabas","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kunskap.websupport.se\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb\/25127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/users\/44"}],"version-history":[{"count":1,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb\/25127\/revisions"}],"predecessor-version":[{"id":25130,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb\/25127\/revisions\/25130"}],"wp:attachment":[{"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/media?parent=25127"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb-category?post=25127"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=25127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}