{"id":6238,"date":"2022-02-03T08:15:16","date_gmt":"2022-02-03T14:15:16","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=6238"},"modified":"2022-02-03T08:15:17","modified_gmt":"2022-02-03T14:15:17","slug":"directadmin-license-has-expired","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/directadmin-license-has-expired\/","title":{"rendered":"DirectAdmin License has Expired"},"content":{"rendered":"\n<p>Invalid license errors are either due to wrong uid\/lid, IP, or date, or the DA cron isn\u2019t running. You should first see if the cron is running by searching the cron log for license update crons,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep license \/var\/log\/cron<\/code><\/pre>\n\n\n\n<p>If not, try to run the cron manually,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/usr\/local\/directadmin; echo 'action=update&amp;value=license' &gt;&gt; data\/task.queue; .\/dataskq d2000<\/code><\/pre>\n\n\n\n<p>If you see errors like the following, you may need to then try to update the license manually (this indicates that the cron is running if these messages have been sent daily),<\/p>\n\n\n\n<p><strong>* An error has occurred while trying to update the license file&nbsp;<\/strong>*<\/p>\n\n\n\n<p>You can try updating the license to resolve this issue,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uid=$(grep uid \/usr\/local\/directadmin\/scripts\/setup.txt | awk -F'=' {'print $2'}); lid=$(grep lid \/usr\/local\/directadmin\/scripts\/setup.txt | awk -F'=' {'print $2'}); sh \/usr\/local\/directadmin\/scripts\/getLicense.sh $uid $lid ; service directadmin restart<\/code><\/pre>\n\n\n\n<p>There are a few errors that may occur,<\/p>\n\n\n\n<p>1) DirectAdmin fails to stop and start during the restart command. Use this command to correct,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>killall -9 directadmin; \/etc\/init.d\/directadmin start<\/code><\/pre>\n\n\n\n<p>Retry the restart command, to ensure that both the \u201cStopping\u201d and \u201cStarting\u201d sections are \u201c[ OK ]\u201d.<\/p>\n\n\n\n<p>2) You may need to specify the primary IP with the command to ensure that the correct IP is being bound by wget to the license key,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uid=$(grep uid \/usr\/local\/directadmin\/scripts\/setup.txt | awk -F'=' {'print $2'}); lid=$(grep lid \/usr\/local\/directadmin\/scripts\/setup.txt | awk -F'=' {'print $2'}); ip=`hostname -i`;  sh \/usr\/local\/directadmin\/scripts\/getLicense.sh $uid $lid $ip<\/code><\/pre>\n\n\n\n<p>3) If you cannot connect to https:\/\/directadmin.com (port 443), you can try using port 80,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 1 &gt; \/root\/.insecure_download<\/code><\/pre>\n\n\n\n<p>If you find that this error is reoccurring, you could make a separate cron to automatically update the license for you.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uid=$(grep uid \/usr\/local\/directadmin\/scripts\/setup.txt | awk -F'=' {'print $2'}); lid=$(grep lid \/usr\/local\/directadmin\/scripts\/setup.txt | awk -F'=' {'print $2'}); echo '0 0 4 * * root \/usr\/local\/directadmin\/scripts\/getLicense.sh $uid $lid ; echo \"action=directadmin&amp;value=restart\" &gt;&gt; \/usr\/local\/directadmin\/data\/task.queue' &gt;&gt; \/etc\/cron.d\/directadmin_cron ; \/etc\/init.d\/crond restart<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>Now that we\u2019ve gone over different types of DirectAdmin license errors and looked around at those errors. We also shared the steps to update the license key and configuring the correct cron job for the license update.<\/p>\n\n\n\n<p>KnownHost offers 365 days a year, 24 hours a day, all 7 days of the week best in class technical support. A dedicated team ready to help you with requests such as adding new password protected directories; should you need our assistance. You\u2019re not using KnownHost for the best webhosting experience? Well, why not? Check with&nbsp;<a href=\"https:\/\/www.knownhost.com\/contact\">our Sales team<\/a>&nbsp;to see what can&nbsp;<a href=\"https:\/\/www.knownhost.com\/\">KnownHost<\/a>&nbsp;do for you in improving your webhosting experience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Invalid license errors are either due to wrong uid\/lid, IP, or date, or the DA cron isn\u2019t running. You should first see if the cron is running by searching the cron log for license update crons, If not, try to run the cron manually, If you see errors like the following, you may need to [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[128,380,595,596],"class_list":["post-6238","post","type-post","status-publish","format-standard","hentry","category-directadmin","tag-directadmin","tag-error","tag-expired","tag-license-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>DirectAdmin License has Expired - KnownHost<\/title>\n<meta name=\"description\" content=\"Are you facing the error &quot;Invalid license&quot; with your DirectAdmin license? Let&#039;s learn more about the issue DirectAdmin license has expired.\" \/>\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.knownhost.com\/kb\/directadmin-license-has-expired\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DirectAdmin License has Expired - KnownHost\" \/>\n<meta property=\"og:description\" content=\"Are you facing the error &quot;Invalid license&quot; with your DirectAdmin license? Let&#039;s learn more about the issue DirectAdmin license has expired.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/directadmin-license-has-expired\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-03T14:15:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T14:15:17+00:00\" \/>\n<meta name=\"author\" content=\"Somesh Z\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Somesh Z\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/directadmin-license-has-expired\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/directadmin-license-has-expired\\\/\"},\"author\":{\"name\":\"Somesh Z\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\"},\"headline\":\"DirectAdmin License has Expired\",\"datePublished\":\"2022-02-03T14:15:16+00:00\",\"dateModified\":\"2022-02-03T14:15:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/directadmin-license-has-expired\\\/\"},\"wordCount\":316,\"keywords\":[\"directadmin\",\"error\",\"expired\",\"license\"],\"articleSection\":[\"DirectAdmin\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/directadmin-license-has-expired\\\/\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/directadmin-license-has-expired\\\/\",\"name\":\"DirectAdmin License has Expired - KnownHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2022-02-03T14:15:16+00:00\",\"dateModified\":\"2022-02-03T14:15:17+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\"},\"description\":\"Are you facing the error \\\"Invalid license\\\" with your DirectAdmin license? Let's learn more about the issue DirectAdmin license has expired.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/directadmin-license-has-expired\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/directadmin-license-has-expired\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/directadmin-license-has-expired\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DirectAdmin License has Expired\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\",\"name\":\"Somesh Z\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"caption\":\"Somesh Z\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DirectAdmin License has Expired - KnownHost","description":"Are you facing the error \"Invalid license\" with your DirectAdmin license? Let's learn more about the issue DirectAdmin license has expired.","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.knownhost.com\/kb\/directadmin-license-has-expired\/","og_locale":"en_US","og_type":"article","og_title":"DirectAdmin License has Expired - KnownHost","og_description":"Are you facing the error \"Invalid license\" with your DirectAdmin license? Let's learn more about the issue DirectAdmin license has expired.","og_url":"https:\/\/www.knownhost.com\/kb\/directadmin-license-has-expired\/","og_site_name":"KnownHost","article_published_time":"2022-02-03T14:15:16+00:00","article_modified_time":"2022-02-03T14:15:17+00:00","author":"Somesh Z","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Somesh Z","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/directadmin-license-has-expired\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/directadmin-license-has-expired\/"},"author":{"name":"Somesh Z","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1"},"headline":"DirectAdmin License has Expired","datePublished":"2022-02-03T14:15:16+00:00","dateModified":"2022-02-03T14:15:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/directadmin-license-has-expired\/"},"wordCount":316,"keywords":["directadmin","error","expired","license"],"articleSection":["DirectAdmin"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/directadmin-license-has-expired\/","url":"https:\/\/www.knownhost.com\/kb\/directadmin-license-has-expired\/","name":"DirectAdmin License has Expired - KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"datePublished":"2022-02-03T14:15:16+00:00","dateModified":"2022-02-03T14:15:17+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1"},"description":"Are you facing the error \"Invalid license\" with your DirectAdmin license? Let's learn more about the issue DirectAdmin license has expired.","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/directadmin-license-has-expired\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/directadmin-license-has-expired\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/directadmin-license-has-expired\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"DirectAdmin License has Expired"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1","name":"Somesh Z","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","caption":"Somesh Z"}}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/6238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=6238"}],"version-history":[{"count":0,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/6238\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=6238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=6238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=6238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}