View Full Version : Migrating from cpanel ...
cpwhiz
02-04-2003, 11:18 PM
Has anyone tried and been successful with migrating cpanel accounts from a cpanel server to another server with DSM?
Not only the www files (that's probably the easiest part if you've got backups) - but all the emails, email folders, POP passwords, FTP users, MySql DBs etc.
parawing742
02-04-2003, 11:22 PM
I have done it, but I did everything by hand. It takes a lot more work, but doesn't end up creating problems.
cpwhiz
02-04-2003, 11:35 PM
Is it too involving? Can it be done 100% in all aspects? Are the mail folders compatible between the two? Is there anything that won't transfer to DSM?
parawing742
02-05-2003, 01:16 AM
I tar'ed up the public_html folder for each website on the cpanel server and copied it from the old server to the DSM server from SSH.
I recreated all the mail, ftp, mysql settings in DSM. It will take a little bit of time, but it only has to be done once.
cpwhiz
02-05-2003, 09:42 AM
Originally posted by parawing742
....I recreated all the mail, ftp, mysql settings in DSM. It will take a little bit of time, but it only has to be done once.
This is the most interesting part... Is the raw email format (the inbox folder for example) compatible with each other?
How did you recreate all those settings without knowing the actual passwords for the POP, FTP and MySql users?
parawing742
02-05-2003, 10:24 AM
I moved the mail using a program from http://www.chimera.co.nz/. I didn't even try to just copy it directly off the server because I don't know if that would work.
As for passwords, I had to contact each client one at a time while their site was being moved so I didn't break anything. They ended up with all new passwords.
I don't know any better way to move websites right now.
os1765
02-05-2003, 11:08 AM
I found during migrating one of my servers, that courier seems to support multiple encryption method - including the one used in the cpanel shadow files (for mail).
After creating all the pop accounts, I used the following comand (well, scripted it of course).
userdb example.com/user@example.com set systempw=<pasted password from file>
When I got done, run makeuserdb and everything should be working great.
Same deal with ftp passwords, I just transplanted them into /etc/ftp.passwd from the old cpanel ftp password file, and they worked. Both use proftpd.
mysql passwords can also be copied from machine to machine.
The raw mailbox formats are not the same, but there is a nice script called mbox2maildir which handles the conversion nicely.
In my experience, I have not yet found anything I couldn't script in bash or perl, and get around. Our latest conversion went very smoothly. But I must admit, the first few took some patch work by hand.
cpwhiz
02-07-2003, 08:27 PM
Originally posted by parawing742
I moved the mail using a program from http://www.chimera.co.nz/. I didn't even try to just copy it directly off the server because I don't know if that would work.
Thanks for the tip. That email redirection script looks quite nifty.
Once you've converted the mailboxes to the DSM format, was the Webmail able to read the messages without further tweaks?
vBulletin v3.5.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.