Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: cPanel account migration from Plesk / Direct Admin  (Read 3939 times)

0 Members and 1 Guest are viewing this topic.

mohitht

  • Guest
cPanel account migration from Plesk / Direct Admin
« on: February 08, 2014, 08:24:16 am »
Hi All,

We can copy the accounts from Plesk, DirectAdmin or Ensim by using WHM feature Copy Accounts from Another Server option listed in WHM. We can manually migrate the accounts from the above mentioned control panels by following methods  by Populating /etc/trueuserdomains on the source server, Creating a package of an account into a single file,Copy the packaged account to the destination Panel server, Restore the account on the cPanel server

Initially download the scripts that build the list of accounts at /etc/trueuserdomains

# wget http://httpupdate.cpanel.net/cpanelsync/transfers_DEVEL/pkgacct/updateuserdomains-universal


Download the particular control panel script to populate the user accounts

For Directadmin download the script from
# wget http://httpupdate.cpanel.net/cpanelsync/transfers_DEVEL/pkgacct/pkgacct-da

For Plesk download the script from
# wget http://httpupdate.cpanel.net/cpanelsync/transfers_DEVEL/pkgacct/pkgacct-pXa

For Ensim, download the script from
# wget http://httpupdate.cpanel.net/cpanelsync/transfers_DEVEL/pkgacct/pkgacct-enXim


Make the download packages executable by

# chmod +x updateuserdomains-universal

# chmod +x pkgacct-*



Execute the updateuserdomain script by
# ./updateuserdomains-universal


To package an account in Directadmin we can use the script as follows consider the account name be mohi

./pkgacct-da mohi

This will create a package named /home/cpmove-mohi.tar.gz


Then move this file to the destination server by
# scp /home/cpmove-mohi.tar.gz root@x.x.x.x:/home

On the destination server run the screen command to not interupt the shell prompt

so follow the simple steps below to restore the account
# cd /home

# /scripts/restorepkg cpmove-mohi.tar.gz



That's it  :)

Have a great day  :)