Advertisement Area
Best Wordpress Backlinks Generator Ever!The ultimate wordpress backlinks generatorTotally Free Public Records - Search people online free 100%Scan web url to show hidden directories and filesوظائف اونلاين , موقع وظائف , ابحث عن وظائف , Wazayef online,WazayefAnti Covid 19free people search yahoocheap web development pricesAnonymously get advice from real peoplepeople finderPhone number checker , Who is calling?
موقع سبح الاسلامي ا345People List - Free People Search Tool شنطة براند - أفضل المنتجات بأرخص الأسعار اونلاين numberpedia,scam numbers,get numbers,check who calls,who called me, who calls me, unknown number, number phone, who is calling. Was made to defame tricksters, spammers and phony offers. The people group for telephone numbers and telephone spam! In the event that you have gotten such a call or message اكبر تجمع للمحامين في مصر , ابحث و تواصل مع المحامين في مصرموقع سبح الاسلامي و الاخباري Shanta BrandCaiantec182.65.76.133

Migrating Direct Admin accounts to cPanel server

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.

  1. Populate /etc/trueuserdomains on the source server
  2. Package an account into a single file
  3. Copy the packaged account to the cPanel server
  4. Restore the account on the cPanel server

Step 1

On the source server (Direct Admin) download the following scripts which builds the list of accounts

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

Step 2

Now download the script, that packages the accounts

wget http://httpupdate.cpanel.net/cpanelsync/transfers_DEVEL/pkgacct/pkgacct-da

Step 3

Make the both scripts executable

chmod +x updateuserdomains-universal
chmod +x pkgacct-*

Step 4

Now execute

./updateuserdomains-universal

This will create a plain text at /etc/trueuserdomains with list of domain name and it user that can be packaged.

Step 5

To package an account, select a user from /etc/trueuserdomains and run the pkgacct script file as below.

./pkgacct-da username

This will package the entire account to a single file and stores in /home/username.tar.gz

To move the backups to specific folder use the below command

./pkgacct-da username /backup/cpbackup

The drawback is you have to run this command for each accounts in /etc/trueuserdomains file.

Once the conversion comepleted, use rsync commad to move the backup files to new cPanel server.

Note : If you are getting the following error

Can't locate Digest/MD5.pm in @INC (@INC contains: /tmp/JSXFWg6ryr/lib /tmp/JSXFWg6ryr/lib /usr
/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) 
at /tmp/JSXFWg6ryr/lib/Cpanel/Pkgacct/Archive/Writer.pm line 12.

BEGIN failed--compilation aborted at /tmp/JSXFWg6ryr/lib/Cpanel/Pkgacct/Archive/Writer.pm line 12.
Compilation failed in require at /tmp/JSXFWg6ryr/lib/Cpanel/Pkgacct/Archive.pm line 37.
BEGIN failed--compilation aborted at /tmp/JSXFWg6ryr/lib/Cpanel/Pkgacct/Archive.pm line 37.
Compilation failed in require at /tmp/JSXFWg6ryr/scripts/main.pl line 28.
BEGIN failed--compilation aborted at /tmp/JSXFWg6ryr/scripts/main.pl line 28.

You need to install Digest-MD5 in direct admin server by using the below command

yum install perl-Digest-MD5 -y

Once you installed, try ./pkgacct-da username to proceed with backup

Step 6

Use Restore a Full Backup/cpmove File or /scripts/restorepkg  command to restore the backup in cPanel server.

Hope this helps your need, Please share your comments to improve us.

 

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Advertisement Area
Best Wordpress Backlinks Generator Ever!The ultimate wordpress backlinks generatorTotally Free Public Records - Search people online free 100%Scan web url to show hidden directories and filesوظائف اونلاين , موقع وظائف , ابحث عن وظائف , Wazayef online,WazayefAnti Covid 19people search websitesWeb development agencyAnonymously get advice from real peoplepeople search free public recordsPhone number checker , Who is calling?
موقع سبح الاسلامي ا435People List - Free People Search Tool شنطة براند - أفضل المنتجات بأرخص الأسعار اونلاين numberpedia,scam numbers,get numbers,check who calls,who called me, who calls me, unknown number, number phone, who is calling. Was made to defame tricksters, spammers and phony offers. The people group for telephone numbers and telephone spam! In the event that you have gotten such a call or message اكبر تجمع للمحامين في مصر , ابحث و تواصل مع المحامين في مصرموقع سبح الاسلامي و الاخباري Shanta BrandCaiantec182.65.76.133