{"id":1893,"date":"2022-06-01T12:30:11","date_gmt":"2022-06-01T07:00:11","guid":{"rendered":"https:\/\/coimbatorewebhosting.com\/blog\/?p=1893"},"modified":"2022-09-29T16:21:25","modified_gmt":"2022-09-29T10:51:25","slug":"migrating-direct-admin-to-cpanel","status":"publish","type":"post","link":"https:\/\/coimbatorewebhosting.com\/blog\/migrating-direct-admin-to-cpanel\/","title":{"rendered":"Migrating Direct Admin accounts to cPanel server"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/migrating-direct-admin-to-cpanel\/#Migrating_Direct_Admin_accounts_to_cPanel_server\" >Migrating Direct Admin accounts to cPanel server<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/migrating-direct-admin-to-cpanel\/#Step_1\" >Step 1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/migrating-direct-admin-to-cpanel\/#Step_2\" >Step 2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/migrating-direct-admin-to-cpanel\/#Step_3\" >Step 3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/migrating-direct-admin-to-cpanel\/#Step_4\" >Step 4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/migrating-direct-admin-to-cpanel\/#Step_5\" >Step 5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/migrating-direct-admin-to-cpanel\/#Step_6\" >Step 6<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Migrating_Direct_Admin_accounts_to_cPanel_server\"><\/span><span style=\"text-decoration: underline;\">Migrating Direct Admin accounts to cPanel server<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2022\/06\/Direct-admin-accounts-to-cpanel.png\" alt=\"Direct admin accounts to cpanel\" class=\"size-full wp-image-1905 aligncenter\" width=\"816\" height=\"385\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2022\/06\/Direct-admin-accounts-to-cpanel.png 816w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2022\/06\/Direct-admin-accounts-to-cpanel-300x142.png 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2022\/06\/Direct-admin-accounts-to-cpanel-768x362.png 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/p>\n<p>In this tutorial, We are going to see how to migrate accounts from a Direct Admin server to a cPanel server.<\/p>\n<p>Migrating accounts manually is surprisingly a simple task. The things we need to done.<\/p>\n<ol>\n<li>Populate \/etc\/trueuserdomains on the source server<\/li>\n<li>Package an account into a single file<\/li>\n<li>Copy the packaged account to the cPanel server<\/li>\n<li>Restore the account on the cPanel server<\/li>\n<\/ol>\n<h5><span class=\"ez-toc-section\" id=\"Step_1\"><\/span><span style=\"text-decoration: underline;\">Step 1<\/span><span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>On the source server (Direct Admin) download the following scripts which builds the list of accounts<\/p>\n<pre>wget http:\/\/httpupdate.cpanel.net\/cpanelsync\/transfers_DEVEL\/pkgacct\/updateuserdomains-universal<\/pre>\n<h5><span class=\"ez-toc-section\" id=\"Step_2\"><\/span><span style=\"text-decoration: underline;\">Step 2<\/span><span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>Now download the script, that packages the accounts<\/p>\n<pre>wget http:\/\/httpupdate.cpanel.net\/cpanelsync\/transfers_DEVEL\/pkgacct\/pkgacct-da<\/pre>\n<h5><span class=\"ez-toc-section\" id=\"Step_3\"><\/span><span style=\"text-decoration: underline;\">Step 3<\/span><span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>Make the both scripts executable<\/p>\n<pre>chmod +x updateuserdomains-universal\r\nchmod +x pkgacct-*<\/pre>\n<h5><span class=\"ez-toc-section\" id=\"Step_4\"><\/span><span style=\"text-decoration: underline;\">Step 4<\/span><span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>Now execute<\/p>\n<pre>.\/updateuserdomains-universal<\/pre>\n<p>This will <a  href=\"https:\/\/coimbatorewebhosting.com\/blog\/how-to-manage-centos-web-panel-for-vps\/\" title=\"create a\" alt=\"create a\">create a<\/a> plan text at \/etc\/trueuserdomains with list of domain name and it user that can be packaged.<\/p>\n<h5><span class=\"ez-toc-section\" id=\"Step_5\"><\/span><span style=\"text-decoration: underline;\">Step 5<\/span><span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>To package an account, select a user from \/etc\/trueuserdomains and run the pkgacct script file as below.<\/p>\n<pre>.\/pkgacct-da username<\/pre>\n<p>This will package the entire account to a single file and stores in \/home\/username.tar.gz<\/p>\n<p>To move the backups to specific folder use the below command<\/p>\n<pre>.\/pkgacct-da username \/backup\/cpbackup<\/pre>\n<p>The drawback is you have to run this command for each accounts in \/etc\/trueuserdomains file.<\/p>\n<p>Once the conversion completed, use rsync commad to move the backup files to new cPanel server.<\/p>\n<p>Note : If you are getting the following error<\/p>\n<pre>Can't locate Digest\/MD5.pm in @INC (@INC contains: \/tmp\/JSXFWg6ryr\/lib \/tmp\/JSXFWg6ryr\/lib \/usr\r\n\/local\/lib64\/perl5 \/usr\/local\/share\/perl5 \/usr\/lib64\/perl5\/vendor_perl \/usr\/share\/perl5\/vendor_perl \/usr\/lib64\/perl5 \/usr\/share\/perl5 .)\r\nat \/tmp\/JSXFWg6ryr\/lib\/Cpanel\/Pkgacct\/Archive\/Writer.pm line 12.\r\n\r\nBEGIN failed--compilation aborted at \/tmp\/JSXFWg6ryr\/lib\/Cpanel\/Pkgacct\/Archive\/Writer.pm line 12.\r\nCompilation failed in require at \/tmp\/JSXFWg6ryr\/lib\/Cpanel\/Pkgacct\/Archive.pm line 37.\r\nBEGIN failed--compilation aborted at \/tmp\/JSXFWg6ryr\/lib\/Cpanel\/Pkgacct\/Archive.pm line 37.\r\nCompilation failed in require at \/tmp\/JSXFWg6ryr\/scripts\/main.pl <a  href=\"https:\/\/coimbatorewebhosting.com\/blog\/install-latest-python-version3-6\/\" title=\"line 28\" alt=\"line 28\">line 28<\/a>.\r\nBEGIN failed--compilation aborted at \/tmp\/JSXFWg6ryr\/scripts\/main.pl line 28.<\/pre>\n<p>You need to install Digest-MD5 in direct admin server by using the below command<\/p>\n<pre>yum install perl-Digest-MD5 -y<\/pre>\n<p>Once you installed, try .\/pkgacct-da username to proceed with backup<\/p>\n<h5><span class=\"ez-toc-section\" id=\"Step_6\"><\/span><span style=\"text-decoration: underline;\">Step 6<\/span><span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>Use Restore a Full Backup\/cpmove File or \/scripts\/restorepkg command to restore the backup in <a href=\"https:\/\/www.squarebrothers.com\/cpanel-hosting-india\/\" rel=\"nofollow noopener\" target=\"_blank\">cPanel<\/a> server.<\/p>\n<p>Hope this helps your need, Please share your comments to improve us.<\/p>\n<p>To know how to use external mail server in direct admin <a href=\"https:\/\/coimbatorewebhosting.com\/blog\/using-an-external-mail-server-in-direct-admin\/\">click here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Migrating Direct Admin accounts to cPanel server In this tutorial, We are going to see how to migrate accounts from a Direct Admin server to a cPanel server. Migrating accounts manually is surprisingly a simple task. The things we need to done. Populate \/etc\/trueuserdomains on the source server Package an [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1905,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[191,3],"tags":[121,170,186],"class_list":["post-1893","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-da-panel","category-linux","tag-cpanel","tag-direct-admin","tag-migration"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2022\/06\/Direct-admin-accounts-to-cpanel.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pa2YU7-ux","_links":{"self":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/posts\/1893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/comments?post=1893"}],"version-history":[{"count":11,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/posts\/1893\/revisions"}],"predecessor-version":[{"id":1906,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/posts\/1893\/revisions\/1906"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/media\/1905"}],"wp:attachment":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/media?parent=1893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/categories?post=1893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/tags?post=1893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}