{"id":845,"date":"2011-11-17T09:06:56","date_gmt":"2011-11-17T08:06:56","guid":{"rendered":"https:\/\/www.uk-cheapest.co.uk\/support\/?p=845"},"modified":"2011-11-18T08:15:10","modified_gmt":"2011-11-18T07:15:10","slug":"how-to-setup-a-php-cron-scheduled-task-in-plesk","status":"publish","type":"post","link":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/","title":{"rendered":"How to setup a PHP Cron job or scheduled task in Plesk"},"content":{"rendered":"<p><strong>Re: Set up a cron job in Plesk, Plesk crontab, Create a PHP cron job in Plesk<\/strong><\/p>\n<p>Setting up a cron task or scheduled job within Plesk is a piece of cake &#8211; once you know how.<\/p>\n<p>First, find your way in to the Plesk Control Panel and hit the &#8220;Scheduled Tasks&#8221; button, then &#8220;Schedule New Task&#8221;. The example below will show a working task executing a PHP file named <em>cronjob.php<\/em> located in \/httpdocs (your document root) at 01:00 every morning of every day:<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Scheduling PHP Cron Jobs in Plesk\" src=\"https:\/\/www.uk-cheapest.co.uk\/images\/cronjob.gif\" alt=\"\" width=\"553\" height=\"396\" align=\"centre\" \/><\/p>\n<p>The form looks pretty straight forward however there are some points to note.<\/p>\n<ul>\n<li>If you want to run every hour, put an asterisk &#8220;*&#8221; in the <strong>Hour<\/strong> field<\/li>\n<li>If you want to run every day, put an asterisk &#8220;*&#8221; in the <strong>Day of Month<\/strong> field<\/li>\n<li>If you want to run every month, put an asterisk &#8220;*&#8221; in the <strong>Month<\/strong> field<\/li>\n<li>If you want to run everyday, put an asterisk &#8220;*&#8221; in the <strong>Day of Week<\/strong> field<\/li>\n<\/ul>\n<p>If you have problems, check your asterisks are in the right places and that you cron PHP file is in the right location. Compare the schedule task dialogue boxes carefully and you won&#8217;t have any problems.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Re: Set up a cron job in Plesk, Plesk crontab, Create a PHP cron job in Plesk Setting up a cron task or scheduled job within Plesk is a piece of cake &#8211; once you know how. First, find your way in to the Plesk Control Panel and hit the &#8220;Scheduled Tasks&#8221; button, then &#8220;Schedule &#8230; <a title=\"How to setup a PHP Cron job or scheduled task in Plesk\" class=\"read-more\" href=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/\" aria-label=\"More on How to setup a PHP Cron job or scheduled task in Plesk\">Read more&#8230;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"generate_page_header":"","footnotes":""},"categories":[82,63],"tags":[108,207,211,210,206,83,209,208],"class_list":["post-845","post","type-post","status-publish","format-standard","hentry","category-php","category-plesk-support","tag-cron","tag-cronjob","tag-cronjobs","tag-crontab","tag-job","tag-php-2","tag-scheduled","tag-tesk"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.4 (Yoast SEO v23.4) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to setup a PHP Cron job or scheduled task in Plesk - UK-Cheapest.co.uk<\/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:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to setup a PHP Cron job or scheduled task in Plesk\" \/>\n<meta property=\"og:description\" content=\"Re: Set up a cron job in Plesk, Plesk crontab, Create a PHP cron job in Plesk Setting up a cron task or scheduled job within Plesk is a piece of cake &#8211; once you know how. First, find your way in to the Plesk Control Panel and hit the &#8220;Scheduled Tasks&#8221; button, then &#8220;Schedule ... Read more...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/\" \/>\n<meta property=\"og:site_name\" content=\"UK-Cheapest.co.uk\" \/>\n<meta property=\"article:published_time\" content=\"2011-11-17T08:06:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-11-18T07:15:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.uk-cheapest.co.uk\/images\/cronjob.gif\" \/>\n<meta name=\"author\" content=\"UKC\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ukchelpdesk\" \/>\n<meta name=\"twitter:site\" content=\"@ukchelpdesk\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"UKC\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/\",\"name\":\"How to setup a PHP Cron job or scheduled task in Plesk - UK-Cheapest.co.uk\",\"isPartOf\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.uk-cheapest.co.uk\/images\/cronjob.gif\",\"breadcrumb\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/#primaryimage\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/images\/cronjob.gif\",\"contentUrl\":\"https:\/\/www.uk-cheapest.co.uk\/images\/cronjob.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"UK-Cheapest.co.uk\",\"item\":\"https:\/\/www.uk-cheapest.co.uk\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to setup a PHP Cron job or scheduled task in Plesk\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#website\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/\",\"name\":\"UK-Cheapest.co.uk\",\"description\":\"Cheap Domain Names, Web Hosting, Site Builder &amp; Web Security\",\"publisher\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.uk-cheapest.co.uk\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#organization\",\"name\":\"UKC\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png\",\"contentUrl\":\"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png\",\"width\":217,\"height\":55,\"caption\":\"UKC\"},\"image\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/ukchelpdesk\",\"https:\/\/www.instagram.com\/ukc_hosting\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/135cf981b8a3a120603fcbc027eed746\",\"name\":\"UKC\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f39b95f178ec21ebe3134a71baa1146d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f39b95f178ec21ebe3134a71baa1146d?s=96&d=mm&r=g\",\"caption\":\"UKC\"},\"sameAs\":[\"https:\/\/www.uk-cheapest.co.uk\"],\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/author\/colin\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to setup a PHP Cron job or scheduled task in Plesk - UK-Cheapest.co.uk","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.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/","og_locale":"en_GB","og_type":"article","og_title":"How to setup a PHP Cron job or scheduled task in Plesk","og_description":"Re: Set up a cron job in Plesk, Plesk crontab, Create a PHP cron job in Plesk Setting up a cron task or scheduled job within Plesk is a piece of cake &#8211; once you know how. First, find your way in to the Plesk Control Panel and hit the &#8220;Scheduled Tasks&#8221; button, then &#8220;Schedule ... Read more...","og_url":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/","og_site_name":"UK-Cheapest.co.uk","article_published_time":"2011-11-17T08:06:56+00:00","article_modified_time":"2011-11-18T07:15:10+00:00","og_image":[{"url":"https:\/\/www.uk-cheapest.co.uk\/images\/cronjob.gif"}],"author":"UKC","twitter_card":"summary_large_image","twitter_creator":"@ukchelpdesk","twitter_site":"@ukchelpdesk","twitter_misc":{"Written by":"UKC","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/","url":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/","name":"How to setup a PHP Cron job or scheduled task in Plesk - UK-Cheapest.co.uk","isPartOf":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/#primaryimage"},"image":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/#primaryimage"},"thumbnailUrl":"https:\/\/www.uk-cheapest.co.uk\/images\/cronjob.gif","breadcrumb":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/#primaryimage","url":"https:\/\/www.uk-cheapest.co.uk\/images\/cronjob.gif","contentUrl":"https:\/\/www.uk-cheapest.co.uk\/images\/cronjob.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-setup-a-php-cron-scheduled-task-in-plesk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"UK-Cheapest.co.uk","item":"https:\/\/www.uk-cheapest.co.uk\/support\/"},{"@type":"ListItem","position":2,"name":"How to setup a PHP Cron job or scheduled task in Plesk"}]},{"@type":"WebSite","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#website","url":"https:\/\/www.uk-cheapest.co.uk\/support\/","name":"UK-Cheapest.co.uk","description":"Cheap Domain Names, Web Hosting, Site Builder &amp; Web Security","publisher":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.uk-cheapest.co.uk\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization","name":"UKC","url":"https:\/\/www.uk-cheapest.co.uk\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png","contentUrl":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png","width":217,"height":55,"caption":"UKC"},"image":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/ukchelpdesk","https:\/\/www.instagram.com\/ukc_hosting\/"]},{"@type":"Person","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/135cf981b8a3a120603fcbc027eed746","name":"UKC","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f39b95f178ec21ebe3134a71baa1146d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f39b95f178ec21ebe3134a71baa1146d?s=96&d=mm&r=g","caption":"UKC"},"sameAs":["https:\/\/www.uk-cheapest.co.uk"],"url":"https:\/\/www.uk-cheapest.co.uk\/support\/author\/colin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/845"}],"collection":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/comments?post=845"}],"version-history":[{"count":11,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/845\/revisions"}],"predecessor-version":[{"id":922,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/845\/revisions\/922"}],"wp:attachment":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/media?parent=845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/categories?post=845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/tags?post=845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}