Migrate from WHM/cPanel to Virtualmin

SYSTEM INFORMATION
OS type and version Ubuntu 24.04.2 LTS
Webmin version 2.303
Virtualmin version 7.30.8
Webserver version Apache version 2.4.58

Hi everyone,

I’m currently using a bronze reseller account with Justhostme.co.uk, which includes WHM and 5 cPanel accounts. Each of these cPanel accounts is hosting a WordPress website.

I’m planning to migrate away from WHM/cPanel and move these WordPress sites to a server managed with Virtualmin.

I’m looking for advice on the best practices and a recommended process for this type of migration. Any tips, potential pitfalls to watch out for, or guidance on transferring everything smoothly (WordPress files, databases, configurations) would be greatly appreciated.

Thanks in advance!

@vminh,

Take a look at:

2 Likes

Keep your cpanel backups until you are happy the websites are working properly, and even then I would keep them.

3 Likes

I know nothing of that host but, be aware, do not use any images that have Webmin/Virtualmin already installed. It has been problematic in the past.

1 Like

It’s a straightforward 2 step process:

  1. Copy paste all the relevant WordPress files/directories from the cPanel server to the new Virtualmin server.

  2. Export the database of each site and import it to the new server. Just make sure the database character set matches on both servers.

Drop me a DM if you want (paid) assistance with the site migration and server configuration.

1 Like

A migration using cPanel backups using the migrate feature in Virtualmin will also bring over the WordPress installations (and any other apps). No need to do it manually, though one could if anything is unusual about the deployment.

2 Likes

more work, but more control — use any of the many wordpress plugins to do a backup/restore to the new Virtualmin system — but of course first you must manually set up each domain/environment in Virtualmin to have a place to do that wordpress restore.

again this is a very manual way to do things, but wanted to offer it as an option. this way is more difficult if any of your domains have email accounts or stored mail messages that have to be copied over.

other posts in this forum show good results (I did not search for those posts so hope my memory is good) when using the migration feature in Virtualmin written specifically for cPanel – as mentioned above by Joe.

1 Like

Hi all, this comment is for updating my first try migrating from cPanel to Virtualmin.

For your information, my reseller account has 5 cPanel accounts on it

Steps were done:

  1. Go to cPanel of one of the 5 accounts and create a full backup

  2. After backup done, I go to file manager and download the backup file to my local computer

  3. Then I login to Virtualmin and use its Migrate Virtual Server feature with Backup file type: cPanel backup

  4. After migrating finished, the site working properly but other sites/accounts on my reseller account, which have not been migrated to Virtualmin, are not accessible (return 404 not found)

I think this issue happened due to change in DNS zone (because the Virtualmin server IP is different from the reseller account)

I have to restore the Virtualmin server to previous state from backup, so that all the sites working
again
Please help me to have a better way to achieve this. Thank you so much!

Yes, i tried it but there is an issue. Please read my latest comment, i’ve just posted it. Thank you!

Hi everyone,
Please help me with this issue.
Thank you so much!!!