{"id":2074,"date":"2018-04-21T15:29:59","date_gmt":"2018-04-21T10:59:59","guid":{"rendered":"https:\/\/rasanegar.com\/blog\/?p=2074"},"modified":"2018-06-01T15:35:31","modified_gmt":"2018-06-01T11:05:31","slug":"updating-your-directadmin-license-manually","status":"publish","type":"post","link":"https:\/\/rasanegaar.com\/blog\/updating-your-directadmin-license-manually\/","title":{"rendered":"\u0686\u0637\u0648\u0631 \u0644\u0627\u06cc\u0633\u0646\u0633 \u062f\u0627\u06cc\u0631\u06a9\u062a \u0627\u062f\u0645\u06cc\u0646 \u0631\u0627 \u0622\u067e\u062f\u06cc\u062a \u06a9\u0646\u06cc\u0645"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span><p dir=\"rtl\">\u0627\u06af\u0631 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0644\u0627\u06cc\u0633\u0646\u0633 \u062f\u0627\u06cc\u0631\u06a9\u062a \u0627\u062f\u0645\u06cc\u0646 \u0631\u0627 \u0628\u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0622\u067e\u062f\u06cc\u062a \u06a9\u0646\u06cc\u062f \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u0648 \u0645\u0637\u0627\u0628\u0642 \u0622\u0646 \u0644\u0627\u06cc\u0633\u0646\u0633 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0622\u067e\u062f\u06cc\u062a \u06a9\u0646\u06cc\u062f<\/p>\n<p dir=\"ltr\">Client ID (uid): \u00a0<input id=\"in1\" type=\"text\" value=\"123\" \/><br \/>\nLicense ID (lid): <input id=\"in2\" type=\"text\" value=\"1234\" \/><br \/>\nIP address: \u00a0 \u00a0 \u00a0 <input id=\"in3\" type=\"text\" value=\"1.2.3.4\" \/><\/p>\n<p class=\"code\" dir=\"ltr\"><code>cd \/usr\/local\/directadmin\/scripts<\/code><br \/>\n<code>.\/getLicense.sh <span class=\"out1 c\">123<\/span> <span class=\"out2 c\">1234<\/span><\/code><br \/>\n<code>service directadmin restart<\/code><\/p>\n<p dir=\"rtl\">\u0631 \u0627\u06cc\u0646\u062c\u0627 <span class=\"out1 c\">123<\/span>\u00a0 <span class=\"out2 c\">1234<\/span> \u0628\u0647 \u062a\u0631\u062a\u06cc\u0628\u00a0 Client ID \u0648 License ID, \u0647\u0633\u062a\u0646\u062f .<\/p>\n<p dir=\"rtl\">\u0627\u06af\u0631 \u0627\u0631\u0648\u0631\u06cc \u062f\u0631 \u0627\u0633\u062a\u062e\u0631\u0627\u062c \u0641\u0627\u06cc\u0644\u00a0 update.tar.gz \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f<\/p>\n<p dir=\"ltr\">head -n 1 \/usr\/local\/directadmin\/conf\/license.key<\/p>\n<p>to search for an error. If there is an readable error inside the file, double check the IP you are using matches the IP in the license on our system. \u00a0Also check that it&#8217;s active in our clients section. \u00a0Failing that, you&#8217;ll need to contact sales@directadmin.com to get your license activated or updated.<\/p>\n<p>If you have multiple IPs on your device and wget is binding to the incorrect one, you can specify the IP to bind to by adding it as the last argument:<\/p>\n<p class=\"code\" dir=\"ltr\"><code>cd \/usr\/local\/directadmin\/scripts<\/code><br \/>\n<code>.\/getLicense.sh <span class=\"out1 c\">123<\/span> <span class=\"out2 c\">1234<\/span> <span class=\"out3 c\">1.2.3.4<\/span><\/code><br \/>\n<code>service directadmin restart<\/code><\/p>\n<p dir=\"rtl\">If you&#8217;re not able to connect to port 443 on directadmin.com (https), or are not getting any results (no returned data), it may be a block somewhere on 443.<br \/>\nFor that case, you can try using port 80 to get the license. \u00a0To do this, type:<\/p>\n<p class=\"code\" dir=\"ltr\"><code>echo 1 &gt; \/root\/.insecure_download<\/code><\/p>\n<p>\u0648 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0628\u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u0631\u0648\u06cc \u067e\u0648\u0631\u062a 80 \u0628\u062f\u0648\u0646 \u0627\u0646\u06a9\u0631\u06cc\u067e\u0634\u0646 \u062f\u0627\u0646\u0644\u0648\u062f \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062e\u0648\u0627\u0647\u062f \u062f\u0627\u062f<\/p>\n<hr \/>\n<p>\u0627\u06af\u0631 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0631\u06cc\u0633\u062a \u0627\u0631\u0648\u0631\u06cc \u0645\u0627\u0646\u0646\u062f \u0632\u06cc\u0631 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0631\u062f\u06cc\u062f<\/p>\n<p class=\"code\">Stopping DirectAdmin: [ FAILED ]<br \/>\nStarting DirectAdmin: [ OK ]<\/p>\n<p>\u0641\u0627\u06cc\u0644 PID \u0634\u0645\u0627 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0633\u06cc\u0646\u06a9 \u0646\u0628\u0627\u0634\u062f \u060c \u062f \u0631\u0627\u06cc\u0646 \u0635\u0648\u0631\u062a \u062f\u0627\u06cc\u0631\u06a9\u062a \u0627\u062f\u0645\u06cc\u0646 \u0631\u0627 \u0628\u0635\u0648\u0631\u062a \u0641\u0648\u0631\u0633 \u0631\u06cc\u0633\u062a \u06a9\u0646\u06cc\u062f<\/p>\n<p class=\"code\" dir=\"ltr\"><code>killall -9 directadmin<\/code><br \/>\n<code>\/etc\/init.d\/directadmin start<\/code><\/p>\n<p>\u0645\u062c\u062f\u062f \u062f\u0633\u062a\u0648\u0631 \u0631\u06cc\u0633\u062a \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u060c \u0628\u0627\u06cc\u062f \u062f\u0631 \u0632\u0645\u0627\u0646 \u062a\u0648\u0642\u0641 \u0648 \u0627\u062c\u0631\u0627\u06cc \u0645\u062c\u062f\u062f \u0639\u0628\u0627\u0631\u062a OK \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0634\u0648\u062f<\/p>\n<p dir=\"ltr\">f you cannot connect to port 2222 at all, see this guide:<br \/>\n<a href=\"http:\/\/help.directadmin.com\/item.php?id=75\" target=\"_blank\" rel=\"noopener\">http:\/\/help.directadmin.com\/item.php?id=75<\/a><\/p>\n<hr \/>\n<p dir=\"ltr\"><b>July 16, 2013: New license relay server<\/b><\/p>\n<p dir=\"ltr\">If you cannot connect to www.directadmin.com via any means, a new script has been added to let you get the license via a license relay server.<br \/>\nMore info and fallback automation will come in time, but for now, manually running this from your server will work:<\/p>\n<p class=\"code\" dir=\"ltr\">cd \/usr\/local\/directadmin\/conf<br \/>\ncp -f license.key license.key.old<br \/>\nwget -O license.key &#8211;no-check-certificate &#8216;https:\/\/license.directadmin.com\/licenseupdate.php?uid=<span class=\"out1 c\">123<\/span>&amp;lid=<span class=\"out2 c\">1234<\/span>&#8216;<br \/>\nchown diradmin:diradmin license.key<br \/>\nchmod 600 license.key<\/p>\n<p dir=\"ltr\">You must connect from your server using the correct IP address. \u00a0Use the &#8211;bind-address=<span class=\"out3 c\">1.2.3.4<\/span> option if needed, to force the correct IP.<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;2074&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628&quot;,&quot;legend&quot;:&quot;0\\\/5 (0 \u0631\u0627\u06cc)&quot;,&quot;size&quot;:&quot;30&quot;,&quot;title&quot;:&quot;\u0686\u0637\u0648\u0631 \u0644\u0627\u06cc\u0633\u0646\u0633 \u062f\u0627\u06cc\u0631\u06a9\u062a \u0627\u062f\u0645\u06cc\u0646 \u0631\u0627 \u0622\u067e\u062f\u06cc\u062a \u06a9\u0646\u06cc\u0645&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} ({count} \u0631\u0627\u06cc)&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 24px;\">\n            <span class=\"kksr-muted\">\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span>\u0627\u06af\u0631 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0644\u0627\u06cc\u0633\u0646\u0633 \u062f\u0627\u06cc\u0631\u06a9\u062a \u0627\u062f\u0645\u06cc\u0646 \u0631\u0627 \u0628\u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0622\u067e\u062f\u06cc\u062a \u06a9\u0646\u06cc\u062f \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u0648 \u0645\u0637\u0627\u0628\u0642 \u0622\u0646 \u0644\u0627\u06cc\u0633\u0646\u0633 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0622\u067e\u062f\u06cc\u062a \u06a9\u0646\u06cc\u062f Client ID (uid): \u00a0 License ID (lid): IP address: \u00a0 \u00a0 \u00a0 cd \/usr\/local\/directadmin\/scripts .\/getLicense.sh 123 1234 service directadmin restart \u0631 \u0627\u06cc\u0646\u062c\u0627 123\u00a0 1234 \u0628\u0647 \u062a\u0631\u062a\u06cc\u0628\u00a0 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":2021,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[445,104,96],"tags":[458,486,459],"class_list":["post-2074","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kb","category-server","category-server-managment","tag-458","tag-486","tag-459"],"acf":[],"_links":{"self":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/2074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/comments?post=2074"}],"version-history":[{"count":0,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/2074\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media\/2021"}],"wp:attachment":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media?parent=2074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/categories?post=2074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/tags?post=2074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}