cPanel-to-DirectAdmin conversion tool

Help

Hi guys,
I need some help, as I am stuck...
I have CPanel in one server, but I wish to change to DA.
I have followed the Instructions to copy on to the DA server, but when I get to the part:
- Customize defaults.conf (tool will not work if you fail to do this)!!!

I am stuck, as I do not know what I am supposed to do here...

I would appreciate it if anybody could give an idea...

Best wishes to all.
 
Hi,
OK, I have changed the file.
I have tried a couple of domains and they convert.
Success!
Now, how do i install it into the client account??
Thanks
 
Hi,
Thanks for the answer...I thought nobody was going to do so, and I was getting really worried...:-)
I am backing up all accounts in WHM.
It is over 200 clients, so it is very slow.
Once I have done it I will import direct with wget from public_html...
WIll keep you posted, as I need to have them all done by tomorrow afternoon my time, in about 20 hours fro now.
Thanks and regards,
 
Phi1.

Cracking script you have there!
Ran for the first time this evening and it all went smooooooothly.

Cheers again!
Ryan
 
Well,
I have migrated ALL accounts over to the DA server, and everything has gone right.
Only 2 backups have given us problems, and seem to be worng.
I think its the backup itself, not the script.
THANK YOU FOR YOUR HELP.
I could not have done it without the script.
Regards,
 
Hi
I'm new user of DA (Direct Admin)
I read this posts about converting tool for cpanel to DA
But in this 11 pages I did not found any good step by step explanation or something like this and I don't want risk,
Please check with me if something is wrong tell me. I want to start transferring sites

1-on CP server I must take backup by this coomand:
Code:
root@hostname# /scripts/pkgacct home/site1
(I use SSh because Cp/WHM is not work)
this command make a bakcup from all parts of a website like emails,ftp accounts,MySql banks,web files and.... on a new file that file name is: cpmove-site1.tar.gz

2- I must move this backup file by ftp(cpmove-site1.tar.gz)
to DirectAdmin Server and now finished my job on cpanel server.
If this is true where i must add this file on DA server?

3- login to Da server and run this for get tools:
Code:
root@hostname# wget [url]http://www.l0rdphi1.com/tools/da.cpanel.import.tar.gz[/url]
A question on this part: where I must extract or copy this file
Should I get it in root or /home?

4-
Code:
tar zxf da.cpanel.import.tar.gz

5-make 2 dirctory by this command
Code:
root@hostname# mkdir import export
questin: where I must create this folders root or /home
or maybe it's not important where?

6-open file defaults.conf with an editor like vi and change setting of this file,I think this is host plan cofiguration like new plan creating.

7-last command is:
Code:
perl da.cpanel.import.pl
If I must do somethings more or less please guaide me.
Thanks:)
 
Hi
Thank you all for many helps;)
I convert my sites successfully,I must tell this tool is wonderful,
Many thanks to l0rdphi1

If anyone want to do this
first on cp server make bakeup from your user files in /home/sitex
by this command:
Code:
root@server# /scripts/pkgacct /home/sitex
and you dont need to install or download this tool to cp server
2-move backedup files to DirectAdmin server
3-in DA use wget to download tool by this command:
Code:
wget [url]http://www.l0rdphi1.com/tools/da.cpanel.import.tar.gz[/url]
4-make 2 directory by this command:
Code:
root@server# mkdir import export
and copy backedup files from cpanel server to import folder
5-extract tool by
Code:
tar zxf da.cpanel.import.tar.gz
6-change setting of file defaults.conf by an editor like vi as you want for example your IP and ...
7-run tool by this command
Code:
perl da.cpanel.import.pl
8-now you must check on your export folder, tool will convert cp backedup files and move hem to export directory.
9-make a reseller on DA controlpanel
10- make a directory on reseller folder by this name:user_backups and move all converted files from export folder to this directory
11- go to DA control panel as reseller and select "Manage User Backups" menu (I'M USE NOW V1.27.1 May 2006) on step1 select localfrom restore part,step 2:IP not very important and in step 3 you can see GOLDEN files yea, you can see your backup files ready to restore select them all and restore.
Finish
I convert my sites today and it convert all MYsqls-emails-and web files and user's password now I must just Tell to my user new control pane address,they used befor this change sitex.com/cpanel and today must use sitex.com:2222
I think they can't feel any change on this server movement.
but in one case my user had mailman mailing list that its not available now.
have fun
Nango
 
Last edited:
Me as well would like to put up a BIG thank you to l0rdphi1 for this contribution.
Migrated a bunch of users from cpanel to DA, and everything worked like a charme, only the mailman mailinglists don't migrate, but i can live with that :)
Once again: THANK YOU!!

Greetings,
ZenSpirit.
 
Hi, I want to restore a backup from cPanel on my DirectAdmin Account, but it doesn work out...

First of al: how should I edit the configuration file?
ip=xxx -> this one I know
ns1=xxx -> this one I know
ns2=xxx -> this one I know
creator=admin -> what should this be?
docsroot=./data/skins/enhanced -> what should this be?
account=ON , I guess
aftp=OFF
cgi=ON
dnscontrol=ON
nemailr=unlimited -> what should this be?
nemails=unlimited -> what should this be?
package=custom , I guess
php=ON
skin=default -> what should this be?
ssh=OFF
ssl=OF
suspend_at_limit=ON
suspended=no
zoom=100

Then, when this is done, how should I do step 3?
I'm haven't got any experiences with Perl, so don't really now how to do it.

Thanks for the help...
 
Ward,

That config file looks more or less fine. To answer your questions:
  1. creator is the reseller you want the new user to be added as. Unless your DA administrative user is not "admin" and you don't want to add the users as a different reseller, "admin" is what you want here.
  2. docsroot is the skin the user will get. It's setup by default to use the enchanced skin. Don't need to change this.
  3. nemailr controls the number of email responders the user can have.
  4. nemails controls the number of pop3 accounts the user can have.
  5. skin should probably be set equal to enchanced since it's using the enchanced skin above.
After finishing your modifications to the configuration file, login to SSH and execute that Perl command. You don't need to know anything about Perl to use this tool. There will be instructions displayed on the screen to help you continue.

Cheers, Phil.
 
Hi,

I have used this tool to sucessfully move over 35 domains so far, howerver there is one domain that it just doesn't work for.

the cpanel backup is 51.4mb (most of which is mail) and it gets converted to a 50kb DA backup file with no mail addresses or mail.

Would appreaciate any ideas, or even how to transfer the mail accounts manually as this is only one of a few domains I have left on a cpanel server now.
 
Note that what I'm about to say is untested, so save a good backup file.

My suggestion would be to, after you've backed up and restored the site, delete everything on the CPanel server for the site except the email stuff.

Then backup and convert again.

Then, on the DA server, do the conversion and unpack the converted backup on the DA server and manually put everything into position.

Note that this is UNTESTED; worst case (if you keep the full backup file) is you'll have to kill and rebuild the site and you'll be back where you started from.

Jeff
 
Hi People(s)!

Do any one mind to do a review on the tool?

Any full instruction on what to do to use the tool?

*CURRENT SITUATION*

Now running.

cPanel 10.8.0 10.8.2-R119

CentOS 3.7 x86_64 - WHM X v3.1.0

Need to migrate 46 accounts in total. (of which some one is reseller acccount.)

1) Email (Email account + Email password must not change.)
2) MySQL (MySQL name should not change too.)
3) Website (FULL WEBSITE TO BE MIGRATED)

Any successful issues on the migration as all 46 accounts is very important and I wished to migrate to DA.
 
Got HTTP but not email ?? Waaahappen?

I was so excited when the conversion and restor went so SMOOTHLY.
However, the email accounts from the Cpanel site didn't import.

Where should I look for a solution?


IF I set up a DA user with a different user name, can I copy the files from the restored user to the new one or will it all be FUBAR?
 
Hello guys. This is my first post here. I have read through every single post in this topic and I still am at a loss. I really need someone to please give me a hand. If you can help me please do so. I have been working on this for four days.
 
Would get more Cpanel refugees

If this tool was officially supported and included excellent instructions at http://help.directadmin.com/ I believe DA would get many more Cpanel Refugees.

My Cpanel host is using pkgacct for backups but the accounts I've tried have not successfully converted the email accounts.....which is the main goal. I can FTP the site eaily...migrating Email/UN/PW is the most significant.
 
Email Email Email

Ok.. here is my scenario:

I have cPanel backups that need to be converted to DA.

While the websites, mysql etc worked fine there was a mishap with the email:

1. Forwarders disappeared.
2. Mail msgs disappeared.

So where are they?

OK:

cPanel now uses IMAP.

Sent Items and Drafts for example are stored in a DOT file

.Sent
.Drafts

Those were not converted by the utility.

On my DA machine I'm running Dovcot-MailDir whereas on the cPanel I was running courier-imap.

So,. if it is possible,. I would suggest adding another menu question:

<if you know, otherwise we'll guess> please enter the Mail software on cPanel. [courier-imap]

Please select the mail software you have on DA (Dovcot-Maildir/vmpop3) [vmpop3]

(sorry,. I don't remember the name of the service that was running before I switched to dovcot).

And then run the conversion.
I'm being hammered by my users after converting over 200 accounts and "where is our email?"
thankfully I am able to see the msgs in the Dot files, so I move them manually.

Thanks,

-Alon.
 
Re: Email Email Email

SupermanInNY said:

I'm being hammered by my users after converting over 200 accounts and "where is our email?"
thankfully I am able to see the msgs in the Dot files, so I move them manually.

Thanks,

-Alon.

Well first of all, users should not be storing their important email on the server. Thats rule number one. I know i know, you can tell them that till you go blue in the face but they will not listen. They may be hammering and hounding you for answers but really, shouldnt you have informed your users that you will be making a transition?

We will definately give our users a CUTOFF DATE where they will need to retrieve all their mail, from their mailboxes, before we do the conversion. That way, nobody can scream and yell about it.

Again, mail should not be left on the server indefinately. Thats really all there is too it.

Second, thanks to the author for the conversion script. I have about 700 sites to transfer, 400 of those is owned by one reseller.

Hopefully, i will not have too many issues with converting resellers as 90% of our users are resellers.

Thank you.
 
Back
Top