{"id":12470,"date":"2024-05-20T13:31:21","date_gmt":"2024-05-20T08:01:21","guid":{"rendered":"https:\/\/www.skynats.com\/?p=12470"},"modified":"2025-01-08T20:36:16","modified_gmt":"2025-01-08T15:06:16","slug":"how-to-migrate-your-website-from-direct-admin-to-cpanel","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/how-to-migrate-your-website-from-direct-admin-to-cpanel\/","title":{"rendered":"How To Migrate your Website from Direct Admin to cPanel"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"529\" height=\"326\" sizes=\"(max-width: 529px) 100vw, 529px\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/05\/Migration-2.png\" alt=\"Migrate Your Website from DirectAdmin to cPanel\" class=\"wp-image-12471\" style=\"width:229px;height:auto\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/05\/Migration-2.png 529w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/05\/Migration-2-300x185.png 300w\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re thinking about migrating your website from DirectAdmin to cPanel<a href=\"https:\/\/cpanel.net\/migrations\/\" target=\"_blank\" rel=\"noopener\">,<\/a> you&#8217;re in the right place. In this blog, we&#8217;ll lead you through the <a href=\"https:\/\/www.skynats.com\/server-management\/\">migration<\/a> process step by step, without or with minimal downtime and no data loss. Let&#8217;s get started.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-normal-font-size\"><strong>Step 1:<\/strong> Preparation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before starting the account migration process, make sure that the cPanel server has been set up properly and has sufficient resources for handling the migrated accounts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-normal-font-size\"><strong>Step 2:<\/strong> Generate Backups in DirectAdmin Server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Log in to the DirectAdmin server as the administrator user and Create backups for each domain or account you want to move.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For this, first download the below script provided by cPanel:\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#wget http:\/\/httpupdate.cpanel.net\/cpanelsync\/transfers_DEVEL\/pkgacct\/updateuserdomains-universal<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This script is used to update user domains on the DirectAdmin server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After that, download the actual script provided by cPanel to generate the backup of the domains in the DirectAdmin server.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#wget http:\/\/httpupdate.cpanel.net\/cpanelsync\/transfers_DEVEL\/pkgacct\/pkgacct-da<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Give the execution permission for both the downloaded scripts to run them as a program.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#chmod +x updateuserdomains-universal\n#chmod +x pkgacct-da<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then run the update user script inorder to update the domains associated with the user accounts:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#.\/updateuserdomains-universal<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Also run the package account command to make an archive of the account in DirectAdmin:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#.\/pkgacct-da user<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the username \u201cuser\u201d with the actual username of the DirectAdmin account you want to back up.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-normal-font-size\"><strong>Step 3:<\/strong> Transfer Backups to cPanel Server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To transfer the backups from the DirectAdmin server to cPanel server, use the scp tool:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#scp \/path\/to\/user.tar.gz root@cpanel-server:\/home<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Here, replace the \u201ccpanel-server\u201d with the actual hostname or ip address of the cpanel server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-normal-font-size\"><strong>Step 4:<\/strong> Restore Backups in cPanel<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First, login to the cPanel server through the backend<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then, go to the directory where the backup is transferred to, here it is transferred to \/home<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#cd \/home <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In order to restore the account to the cpanel server, run the restoration script by cPanel:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#\/scripts\/restorepkg user.tar.gz<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The above script will restore the account \u201cuser\u201d to the cPanel server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you need use another username or create a new user account, then use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#\/scripts\/restorepkg --newuser newuser \/home\/cpmove-user.tar.gz<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After restoring the account to the cPanel server,&nbsp; It is always a good practice to use methods such as host entry to ensure that everything works properly before modifying the DNS values.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is how you can transfer domains from a DirectAdmin server to a cPanel server! We hope this guide was helpful to you. Remember, if you have any problems or questions along the way, please do not hesitate to contact our support team for assistance.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our\u00a0Technical Team\u00a0will be available to assist you with &#8220;How To Migrate your Website from Direct Admin to cPanel &#8221; that can make your job a lot easier. Get in Touch with\u00a0<a href=\"https:\/\/www.skynats.com\/blog\/\">Skynats<\/a>\u00a0if you have any queries.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re thinking about migrating your website from DirectAdmin to cPanel, you&#8217;re in the right place. In this blog, we&#8217;ll lead you through the migration process step by step, without or with minimal downtime and no data loss. Let&#8217;s get started. Step 1: Preparation Before starting the account migration process, make sure that the cPanel [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,764,68],"tags":[18,710,298],"class_list":["post-12470","post","type-post","status-publish","format-standard","hentry","category-blog","category-cpanel","category-server-management","tag-cpanel","tag-directadmin","tag-migration"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/12470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=12470"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/12470\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=12470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=12470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=12470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}