just getting started - migrating from cpanel

19 posts / 0 new
Last post
#1 Sat, 02/12/2011 - 10:36

just getting started - migrating from cpanel

ok....i have my new server running centos5 and the latest version of virtualmin/webmin....i have setup my dns namservers and now it's waiting to be used!

so now i need to move all the domains from my current dedicated server (with another server provider) running cpanel to my new server at a new server provider running virtualmin/webmin.

i have these instructions to go by (is this a good choice)? http://www.virtualmin.com/documentation/id,virtualmin_for_cpanel_users/#...

are there any cool tips or tricks i should know about when migrating from cpanel to virtualmin/webmin?

several of the less than 20 domains i will be moving are joomla/wordpress powered sites....does that make things more complicated?

i am really exited about using virtualmin/webmin....hope it's a fun journey!

thanks in advance for the help, ww : )

Sat, 02/12/2011 - 10:45


There's no real tips or tricks, it's largely a matter of performing a cpanel backup, importing those backups in Virtualmin, and test!

You'll definitely want to test things out on your new server before making it live if at all possible... any number of tweaks may be necessary. A common issue is that packages may be installed on your current server that aren't on the new one -- and you might not notice which ones are missing until a website starts throwing errors :-)

If it does, no problem, just check the error_logs for that website (in $HOME/logs/error_log), figure out what went wrong or what's missing, and fix it up.

Joomla and Wordpress don't make it any easier or harder, they're just web apps that you'll want to add to your list of things to test.

I don't recall if it's installed by default now, but you'll want to make sure that the "php-mysql" module is installed. You can do that by running "yum install php-mysql" on the command line as root.

Good luck with your migration!


Sat, 02/12/2011 - 10:49

thanks eric....is it better to move one domain at a time or just do one complete backup/restore?

ww : )

Sat, 02/12/2011 - 10:57

One isn't better than the other, it's just personal preference :-)

Some people like to do it all at once and get the import over with, and then begin testing.

Others like to do it one at a time, testing as they go.

Depending on how long it takes to test, you might consider copying over a fresh copy of the backups, and performing the restore a second time to make sure the data is up to date.


Sat, 02/12/2011 - 11:24

i'm thinking an "import all at once....test....second restore....go live" sounds like a good plan!

one issue i can think of....i have php4 installed on my old box and php5 is installed on my new box....also i think my version of mysql might be older on the old box....will this be a problem?

thanks again for your help! ww : )

Sat, 02/12/2011 - 11:40

It'll only be a problem if the apps you're using don't support PHP5 or the newer MySQL :-)

I know that WordPress and Joomla both support PHP5, but I'm sure there is some older version of them out there somewhere that doesn't. So it'll come down to what sorts of incompatibilities you run into.

However, it may work just fine :-)

Sounds like that testing stage will be pretty important in your case! :-)


Sat, 02/12/2011 - 12:52

yeah testing will be in order....luckily i only host sites that i design/maintain so i only have to deal with my sites/clients and no one elses!

i'm nervous but excited....always like learning new stuff and i think i'm gonna like virtualmin/webmin....

ww : )

Sun, 02/13/2011 - 10:22

ok....i'm feeling stupid....

i did a full backup from shell and it did the backup....the problem is it looks like it backed up each domain seperately....so i have a domainname.tar.gz file for each domain....

i thought the backup would create one tar.gz file with all the domains included....

am i doing something wrong?

Sun, 02/13/2011 - 11:02

Are you referring to doing a backup of your cPanel accounts, or the Virtualmin accounts?

In either case, it shouldn't matter... Virtualmin can perform an import on a directory. So rather than pointing it at a single file, point it at the directory containing all your backups.

And Virtualmin's default is to backup everything using one file per domain -- I'd probably suggest keeping that default, since it's easy to restore everything if you need to, and it's also easy to copy around one file if that's all you need.

I hope that answers your question :-)


Sun, 02/13/2011 - 11:18

yeah so i'll need to move all the domain files to my virtualmin server and go from there....i'm assuming i can't point the virtualmin server to the directory on my cpanel server and that i have to move the files to the virtualmin server first....

i really appreciate the help eric!

Sun, 02/13/2011 - 11:39

.i'm assuming i can't point the virtualmin server to the directory on my cpanel server and that i have to move the files to the virtualmin server first

You may want to take a peek at the Add Servers -> Migrate Virtual Server screen, there's all sorts of neat options in there :-)

You can indeed pull the backups in via a variety of sources.

Personally, I prefer to do it in two steps; copying the files to the Virtualmin Server, then performing the restore locally. I feel like less might go wrong when doing it that way.

But that's personal preference, and Virtualmin certainly supports having the backup files on a remote server.


Sun, 02/13/2011 - 12:07

you're right....i just need to jump in there and get started!

thanks, ww : )

Sun, 02/13/2011 - 21:40

ok i have migrated a couple of sites to my new virtualmin server from cpanel....when i view a non database driven site in webmin all is well but when i try to preview a joomla or wordpress site within webmin i get the error "Error establishing a database connection" so i am guessing the database/database info to transfer correctly....can someone point me in the right direction?

thanks, ww : )

Sat, 06/11/2011 - 09:53 (Reply to #13)

looks like your migratiion was successful...mine was not: https://www.virtualmin.com/node/18484

who was your cpanel isp?
what version of cpanel did you use?
what was the path inside the *.tar.gz cpanel backup file?

any info you have would be helpful.

Sun, 02/13/2011 - 21:52


Well, remember my suggestions from above... first, make sure the php-mysql package is installed, which you can do by running "yum install php-mysql".

Second, when something doesn't work, look in the error logs for that particular domain -- that's in $HOME/logs/error_log. Those logs will explain in more detail what's going wrong.


Sun, 02/13/2011 - 22:19

php/mysql is installed and the error logs has nothing about databases in it....my guess is something didn't translate when migrating from cpanel....

i guess i'll have to keep poking around virtualmin to see if i can figure out how to edit database names and such....maybe that's the problem....

static sites that i migrated are working just fine it's only the database driven sites that aren't working....

ww : )

Sun, 02/13/2011 - 22:28

One thing you could do is to review the database settings that are set in your PHP apps -- it might be more clear after looking at how it's trying to access your database.


Sun, 02/13/2011 - 22:47

yeah eric i'm going to look it all over more closely tomorrow....i'll figure it out....thanks again for all your help....i feel like i've made some decent progress....

Sat, 08/20/2016 - 11:02

Hi ,

I know this is an old thread still can someone help me .I having trouble with migrating a wordpress site from cpanel .I have succesfully completed the migration ,however my site nothing2everything.in when taken after using local host entry shows wordpress installation .That is it goes to the following link : http://nothing2everything.in/wp-admin/install.php .Can some one help on this .The migration was successful still having this issue .


Topic locked