{"id":17019,"date":"2024-11-11T11:01:41","date_gmt":"2024-11-11T11:01:41","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=17019"},"modified":"2024-11-11T11:46:51","modified_gmt":"2024-11-11T11:46:51","password":"","slug":"how-to-set-up-cron-jobs-in-directadmin","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-set-up-cron-jobs-in-directadmin\/","title":{"rendered":"How to set up Cron Jobs in DirectAdmin"},"content":{"rendered":"\n<p>Cron jobs are used to automate repetitive tasks and to schedule them to happen at specific times. Just as it is with most control panels, the feature is also available in DirectAdmin.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You first need to login into DirectAdmin control panel using one of the URLs below,&nbsp;<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&nbsp;https:\/\/IP-address:2222&nbsp;or&nbsp;https:\/\/server-hostname:2222.<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"642\" height=\"398\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-155.png\" alt=\"\" class=\"wp-image-16951\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-155.png 642w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-155-300x186.png 300w\" sizes=\"auto, (max-width: 642px) 100vw, 642px\" \/><\/figure>\n\n\n\n<p>2. Navigate to <strong>Advanced Settings<\/strong> -> <strong>Cron Jobs<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"990\" height=\"312\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-188.png\" alt=\"\" class=\"wp-image-17022\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-188.png 990w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-188-300x95.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-188-768x242.png 768w\" sizes=\"auto, (max-width: 990px) 100vw, 990px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You will be taken to a Window where you can create\/modify and delete cron jobs.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"230\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-189-1024x230.png\" alt=\"\" class=\"wp-image-17025\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-189-1024x230.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-189-300x67.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-189-768x172.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-189.png 1351w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p> 3. Define the cron job command<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the command field, you will input the command that you want the cron to execute. This can be a command that executes a script, some program or a complete command that already does a task.<\/li>\n\n\n\n<li>For example if you have a cron like this below, which runs a bash script<\/li>\n\n\n\n<li>You can set time for the cron<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>bash \/home\/rootuser\/my-scripts\/checkServerLoadNnotify.sh<\/code><\/pre>\n\n\n\n<p>4. Set timing for the cron job<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DirectAdmin provides fields which you can set when and how a cronjob runs. You will have fields for;\n<ul class=\"wp-block-list\">\n<li><strong>Minute<\/strong>: Enter the minutes (0-59) when you want the cron job to run.<\/li>\n\n\n\n<li><strong>Hour<\/strong>: Enter the hour (0-23) for running the cron job.<\/li>\n\n\n\n<li><strong>Day of Month<\/strong>: Enter the day of the month (1-31).<\/li>\n\n\n\n<li><strong>Month<\/strong>: Specify the month (1-12).<\/li>\n\n\n\n<li><strong>Day of Week<\/strong>: Select the day of the week (0-6 where Sunday is 0 or 7).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-style-zoooom\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"435\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-190-1024x435.png\" alt=\"\" class=\"wp-image-17028\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-190-1024x435.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-190-300x127.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-190-768x326.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-190.png 1353w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>5. Click on Create, to add the cron job<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"655\" height=\"317\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-192.png\" alt=\"\" class=\"wp-image-17032\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-192.png 655w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-192-300x145.png 300w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You have just created a cron job<\/li>\n<\/ul>\n\n\n\n<p>6. You can View, Edit or Delete a Cron job<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To perform any of the above actions, Navigate to <strong>Advanced Settings<\/strong> -> <strong>Cron Jobs<\/strong><\/li>\n\n\n\n<li>You will see the respective buttons or each of the actions then click on the appropraiate one.<\/li>\n\n\n\n<li>You may be asked to confirm the action. Click on the appropriate button co confirm the action.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"783\" height=\"767\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-193.png\" alt=\"\" class=\"wp-image-17033\" style=\"width:840px;height:auto\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-193.png 783w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-193-300x294.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-193-768x752.png 768w\" sizes=\"auto, (max-width: 783px) 100vw, 783px\" \/><\/figure>\n\n\n\n<p>With the above steps, you have successfully created\/modified\/deleted your cron jobs on DirectAdmin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cron jobs are used to automate repetitive tasks and to schedule them to happen at specific times. Just as it is with most control panels, the feature is also available in DirectAdmin. 2. Navigate to Advanced Settings -> Cron Jobs 3. Define the cron job command 4. Set timing for the cron job 5. Click [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1820,1824,1879,2128],"doc_tag":[],"class_list":["post-17019","docs","type-docs","status-publish","hentry","doc_category-cloud-servers-in-kenya","doc_category-dedicated-servers","doc_category-servers","doc_category-vps-servers"],"year_month":"2026-06","word_count":311,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Eugene","author_nicename":"eugene","author_url":"https:\/\/truehost.com\/support\/author\/eugene\/"},"doc_category_info":[{"term_name":"Cloud servers in Kenya","term_url":"https:\/\/truehost.com\/support\/docs-category\/cloud-servers-in-kenya\/"},{"term_name":"dedicated servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/dedicated-servers\/"},{"term_name":"Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/servers\/"},{"term_name":"VPS-Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/vps-servers\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to set up Cron Jobs in DirectAdmin -<\/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.truehost.com\/support\/knowledge-base\/how-to-set-up-cron-jobs-in-directadmin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to set up Cron Jobs in DirectAdmin -\" \/>\n<meta property=\"og:description\" content=\"Cron jobs are used to automate repetitive tasks and to schedule them to happen at specific times. Just as it is with most control panels, the feature is also available in DirectAdmin. 2. Navigate to Advanced Settings -&gt; Cron Jobs 3. Define the cron job command 4. Set timing for the cron job 5. Click [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-set-up-cron-jobs-in-directadmin\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-11T11:46:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-155.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:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-set-up-cron-jobs-in-directadmin\\\/\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-set-up-cron-jobs-in-directadmin\\\/\",\"name\":\"How to set up Cron Jobs in DirectAdmin -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-set-up-cron-jobs-in-directadmin\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-set-up-cron-jobs-in-directadmin\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-155.png\",\"datePublished\":\"2024-11-11T11:01:41+00:00\",\"dateModified\":\"2024-11-11T11:46:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-set-up-cron-jobs-in-directadmin\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-set-up-cron-jobs-in-directadmin\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-set-up-cron-jobs-in-directadmin\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-155.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/image-155.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-set-up-cron-jobs-in-directadmin\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to set up Cron Jobs in DirectAdmin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to set up Cron Jobs in DirectAdmin -","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.truehost.com\/support\/knowledge-base\/how-to-set-up-cron-jobs-in-directadmin\/","og_locale":"en_US","og_type":"article","og_title":"How to set up Cron Jobs in DirectAdmin -","og_description":"Cron jobs are used to automate repetitive tasks and to schedule them to happen at specific times. Just as it is with most control panels, the feature is also available in DirectAdmin. 2. Navigate to Advanced Settings -> Cron Jobs 3. Define the cron job command 4. Set timing for the cron job 5. Click [&hellip;]","og_url":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-set-up-cron-jobs-in-directadmin\/","article_modified_time":"2024-11-11T11:46:51+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-155.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-set-up-cron-jobs-in-directadmin\/","url":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-set-up-cron-jobs-in-directadmin\/","name":"How to set up Cron Jobs in DirectAdmin -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-set-up-cron-jobs-in-directadmin\/#primaryimage"},"image":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-set-up-cron-jobs-in-directadmin\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-155.png","datePublished":"2024-11-11T11:01:41+00:00","dateModified":"2024-11-11T11:46:51+00:00","breadcrumb":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-set-up-cron-jobs-in-directadmin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-set-up-cron-jobs-in-directadmin\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-set-up-cron-jobs-in-directadmin\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-155.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/11\/image-155.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-set-up-cron-jobs-in-directadmin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to set up Cron Jobs in DirectAdmin"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/17019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=17019"}],"version-history":[{"count":6,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/17019\/revisions"}],"predecessor-version":[{"id":17036,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/17019\/revisions\/17036"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=17019"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=17019"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=17019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}