{"id":3735,"date":"2019-12-20T21:13:11","date_gmt":"2019-12-20T14:13:11","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=3735"},"modified":"2019-12-20T21:13:22","modified_gmt":"2019-12-20T14:13:22","slug":"huong-dan-chuyen-tai-khoan-user-cpanel-sang-directadmin","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/huong-dan-chuyen-tai-khoan-user-cpanel-sang-directadmin\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn chuy\u1ec3n t\u00e0i kho\u1ea3n user cPanel sang DirectAdmin"},"content":{"rendered":"<p>K\u1ec3 t\u1eeb khi cPanel t\u0103ng gi\u00e1 \u0111\u1ed9t ng\u1ed9t, m\u1ecdi qu\u1ea3n tr\u1ecb vi\u00ean trong ng\u00e0nh l\u01b0u tr\u1eef web \u0111\u1ec1u ngh\u0129 v\u1ec1 c\u00e1c l\u1ef1a ch\u1ecdn thay th\u1ebf. Vi\u1ec7c t\u0103ng gi\u00e1 b\u1eaft \u0111\u1ea7u sau khi cPanel \u0111\u01b0\u1ee3c Oakley Capital mua l\u1ea1i. Nh\u00f3m n\u00e0y c\u0169ng s\u1edf h\u1eefu Plesk v\u00e0 SolusVM.\u00a0V\u00e0 tin t\u1ee9c th\u00fa v\u1ecb l\u00e0 m\u1ecdi ng\u01b0\u1eddi \u0111ang t\u00ecm ki\u1ebfm c\u00e1c l\u1ef1a ch\u1ecdn thay th\u1ebf, v\u00e0 DirectAdmin l\u00e0 m\u1ed9t l\u1ef1a ch\u1ecdn t\u1ed1t \u0111\u1ec3 thay th\u1ebf cPanel.<\/p>\n<p>DirectAdmin l\u00e0 m\u1ed9t \u0111\u1ed1i th\u1ee7 c\u1ea1nh tranh m\u1ea1nh m\u1ebd. N\u00f3 c\u00f3 giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng t\u1ed1t, c\u00e1c t\u00ednh n\u0103ng c\u1ee7a ng\u01b0\u1eddi b\u00e1n l\u1ea1i(reseller), h\u1ed7 tr\u1ee3 c\u1ed9ng \u0111\u1ed3ng v\u00e0 \u0111\u00e1ng tin c\u1eady. Ngo\u00e0i ra, API c\u00f3 s\u1eb5n cho WHMCS \u0111\u1ec3 qu\u1ea3n l\u00fd b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n.<\/p>\n<p>B\u1ea3n sao l\u01b0u cPanel c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c kh\u00f4i ph\u1ee5c trong DirectAdmin. \u0110\u00e2y l\u00e0 m\u1ed9t tin t\u1ed1t, nh\u01b0ng c\u00f3 m\u1ed9t s\u1ed1 \u0111i\u1ec1u ki\u1ec7n ti\u00ean quy\u1ebft \u0111\u1ec3 tr\u00e1nh c\u00e1c\u00a0 l\u1ed7i trong qu\u00e1 tr\u00ecnh di chuy\u1ec3n t\u00e0i kho\u1ea3n t\u1eeb cPanel sang DirectAdmin.<\/p>\n<p>C\u00e1c t\u1eadp tin sao l\u01b0u ph\u1ea3i \u1edf \u0111\u1ecbnh d\u1ea1ng cpmove-user.tar.gz , file n\u00e0y \u0111\u01b0\u1ee3c t\u1ea1o ra b\u1eb1ng l\u1ec7nh backup c\u1ee7a cPanel.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">script \/scripts\/pkgacct $username<\/pre>\n<p>\u0110\u1ed9 d\u00e0i k\u00fd t\u1ef1 t\u1ed1i \u0111a cho user mysql tr\u00ean cPanel l\u00e0 16 k\u00fd t\u1ef1 v\u00e0 10 k\u00fd t\u1ef1 cho ng\u01b0\u1eddi d\u00f9ng h\u1ec7 th\u1ed1ng trong DirectAdmin. \u0110\u1ed9 d\u00e0i t\u00ean ng\u01b0\u1eddi d\u00f9ng h\u1ec7 th\u1ed1ng ph\u1ea3i kh\u1edbp trong cPanel v\u00e0 DirectAdmin \u0111\u1ec3 tr\u00e1nh xung \u0111\u1ed9t nh\u01b0 t\u00ean c\u01a1 s\u1edf d\u1eef li\u1ec7u, t\u00ean ng\u01b0\u1eddi d\u00f9ng c\u01a1 s\u1edf d\u1eef li\u1ec7u, v.v. C\u00f3 th\u1ec3 t\u00ecm th\u1ea5y \u0111\u1ed9 d\u00e0i t\u1ed1i \u0111a c\u1ee7a t\u00ean ng\u01b0\u1eddi d\u00f9ng cPanel b\u1eb1ng l\u1ec7nh sau.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ls \/var\/cpanel\/users | awk \u2018{print length, $0}\u2019 | sort -nr | head -n1<\/pre>\n<div class=\"ddict_div\">\n<p class=\"ddict_sentence\">\u0110\u1ed9 d\u00e0i t\u1ed1i \u0111a c\u1ee7a t\u00ean ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c \u0111\u1eb7t trong DirectAdmin b\u1eb1ng l\u1ec7nh n\u00e0y<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">\/usr\/local\/directadmin\/directadmin set max_username_length 16 restart<\/pre>\n<p class=\"ddict_sentence\">Phi\u00ean b\u1ea3n DirectAdmin ph\u1ea3i l\u00e0 1.57.4 tr\u1edf l\u00ean.<\/p>\n<p class=\"ddict_sentence\">T\u1eadp l\u1ec7nh chuy\u1ec3n \u0111\u1ed5i sao l\u01b0u trong DirectAdmin ph\u1ea3i l\u00e0 t\u1eadp l\u1ec7nh m\u1edbi nh\u1ea5t. \u0110\u1ec3 c\u1eadp nh\u1eadt t\u1eadp l\u1ec7nh chuy\u1ec3n \u0111\u1ed5i<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cd \/usr\/local\/directadmin\/custombuild\r\n.\/build update\r\n.\/build cpanel_to_da<\/pre>\n<\/div>\n<p>Nh\u01b0 v\u1eady l\u00e0 \u0111\u00e3 ho\u00e0n t\u1ea5t c\u1ea5u h\u00ecnh c\u00e1c \u0111i\u1ec1u ki\u1ec7n ti\u00ean quy\u1ebft\u00a0 \u0111\u1ec3 tr\u00e1nh l\u1ed7i xung \u0111\u1ed9t do kh\u00f4ng kh\u1edbp c\u1ea5u h\u00ecnh gi\u1eefa 2 panel. Ti\u1ebfp theo ta c\u00f3 th\u1ec3 b\u1eaft \u0111\u1ea7u qu\u00e1 t\u00ecnh di d\u1eddi t\u00e0i kho\u1ea3n cPanel sang Directadmin.<\/p>\n<p>Tr\u00ean cPanel server: ta t\u1ea1o file backup\u00a0 v\u00e0 chuy\u1ec3n file backup sang server directadmin<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">mkdir -p \/home\/backup_files\r\n\/scripts\/pkgacct username \/home\/backup_files\r\nrsync -avt -e \u201cssh -p \u201c \/home\/backup_files\/ root@direct_admin_server.com:\/home\/admin\/backup_files\/<\/pre>\n<p>Tr\u00ean DirectAdmin server: C\u00e1c t\u1eadp tin sao l\u01b0u t\u1ea1i \/home\/ admin\/backup_files\/ c\u1ea7n ph\u1ea3i \u0111\u01b0\u1ee3c ph\u00e2n quy\u1ec1n l\u1ea1i v\u1ec1 user admin<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">chown -R admin. \/home\/admin\/backup_files\/<\/pre>\n<p>Ti\u1ebfp theo, truy c\u1eadp DirectAdmin &gt;&gt; Admin tools &gt;&gt; Admin Backup\/Transfer &gt;&gt; Restore<\/p>\n<p><a href=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore1.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3736\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore1.png\" alt=\"\" width=\"1284\" height=\"479\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore1.png 1284w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore1-300x112.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore1-1024x382.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore1-768x287.png 768w\" sizes=\"(max-width: 1284px) 100vw, 1284px\" \/><\/a><\/p>\n<div class=\"ddict_div\">\n<p class=\"ddict_sentence\">Ch\u00fang ta c\u00f3 th\u1ec3 ch\u1ec9 \u0111\u1ecbnh \u0111\u01b0\u1eddng d\u1eabn \u0111\u1ebfn th\u01b0 m\u1ee5c sao l\u01b0u \u1edf \u0111\u00e2y.<\/p>\n<p><a href=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore2.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3737\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore2.png\" alt=\"\" width=\"1289\" height=\"603\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore2.png 1289w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore2-300x140.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore2-1024x479.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore2-768x359.png 768w\" sizes=\"(max-width: 1289px) 100vw, 1289px\" \/><\/a><\/p>\n<div class=\"ddict_div\">\n<p class=\"ddict_sentence\">Trong b\u01b0\u1edbc ti\u1ebfp theo, ch\u1ec9 \u0111\u1ecbnh IP s\u1ebd \u0111\u01b0\u1ee3c g\u00e1n cho t\u00e0i kho\u1ea3n.<\/p>\n<p><a href=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore3.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3738\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore3.jpg\" alt=\"\" width=\"1292\" height=\"535\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore3.jpg 1292w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore3-300x124.jpg 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore3-1024x424.jpg 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore3-768x318.jpg 768w\" sizes=\"(max-width: 1292px) 100vw, 1292px\" \/><\/a><\/p>\n<div class=\"ddict_div\">\n<p class=\"ddict_sentence\">Trong b\u01b0\u1edbc ti\u1ebfp theo ch\u1ecdn t\u1eadp tin sao l\u01b0u s\u1ebd \u0111\u01b0\u1ee3c kh\u00f4i ph\u1ee5c. B\u1ea5m v\u00e0o n\u00fat restore.<\/p>\n<p><a href=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore4.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3739\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore4.png\" alt=\"\" width=\"1297\" height=\"567\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore4.png 1297w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore4-300x131.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore4-1024x448.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/12\/restore4-768x336.png 768w\" sizes=\"(max-width: 1297px) 100vw, 1297px\" \/><\/a><\/p>\n<p>C\u1ea7n ch\u00fa \u00fd l\u00e0\u00a0 sau khi nh\u1ea5n n\u00fat tr\u00ean, DirectAdmin s\u1ebd b\u1eaft \u0111\u1ea7u qu\u00e1 tr\u00ecnh restore ng\u1ea7m b\u00ean trong h\u1ec7 th\u1ed1ng, ch\u1ec9 khi ho\u00e0n t\u1ea5t m\u1edbi c\u00f3 th\u00f4ng b\u00e1o tr\u00ean ph\u00eda notifications. V\u00ec v\u1eady \u0111\u1ec3 ki\u1ec3m tra b\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp ssh v\u00e0 g\u00f5 l\u1ec7nh sau \u0111\u1ec3 ki\u1ec3m tra c\u00f3 ti\u1ebfn tr\u00ecnh restore n\u00e0o \u0111ang ho\u1ea1t \u0111\u1ed9ng kh\u00f4ng nh\u00e9<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">top -c<\/pre>\n<p>B\u1ea1n c\u00f3 th\u1ec3 \u0111\u1ecdc chi ti\u1ebft h\u01a1n t\u1ea1i \u0111\u00e2y: https:\/\/forum.directadmin.com\/threads\/how-to-cpanel-to-da-migration.58059\/<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>K\u1ec3 t\u1eeb khi cPanel t\u0103ng gi\u00e1 \u0111\u1ed9t ng\u1ed9t, m\u1ecdi qu\u1ea3n tr\u1ecb vi\u00ean trong ng\u00e0nh l\u01b0u tr\u1eef web \u0111\u1ec1u ngh\u0129 v\u1ec1 c\u00e1c l\u1ef1a ch\u1ecdn thay th\u1ebf. Vi\u1ec7c t\u0103ng gi\u00e1 b\u1eaft \u0111\u1ea7u sau khi cPanel \u0111\u01b0\u1ee3c Oakley Capital mua l\u1ea1i. Nh\u00f3m n\u00e0y c\u0169ng s\u1edf h\u1eefu Plesk v\u00e0 SolusVM.\u00a0V\u00e0 tin t\u1ee9c th\u00fa v\u1ecb l\u00e0 m\u1ecdi ng\u01b0\u1eddi \u0111ang t\u00ecm [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":16424,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[23],"class_list":["post-3735","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-control-panel-direct-admin"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/3735","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=3735"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/3735\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/16424"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=3735"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=3735"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=3735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}