Migrating Three Wordpress Sites To Subdomains.

  • Posted October 20, 2014

**Newbie learning as I go! ** I have set up an Ubuntu 12.04 server using Virtualmin and added a blank Wordpress install to “”. All seems to be ok but I need to move three live Wordpress sites to subdomains on the server, how best to achieve this? I have the plugin “WP clone” but to use this I would need to install blank Wordpress on all three subdomains and another copy of the plugin, I am guessing there must be an easier way. The live sites are on a shared host with Cpanel. I can use Filezilla and am reasonably competent with a command line, any help would be much appreciated. Thanks.


I am not familiar with Virtualmin, so someone else will need to chime in about that; however, I have a couple of questions:

  1. why 12.04 instead of 14.04? Was there a particular reason for that choice? (genuinely curious)
  2. where are your “live” sites currently living? Do you have access to all of the files and folders?

I would almost go so far to say that if you intend to manage a few websites, you might be better served by starting with a fresh 14.04 install with Apache2, PHP and MySQL, and then configuring things manually. The advantage being that you would know exactly where your configuration files are, how they work, and what you need to do to delete/edit/add sites.

However, if that is too intimidating, and you want to stick with what you have already, then you will need to do a few things to move your sites to your server:

download all of your site files and folders do a MySQL dump (in phpMyadmin it is under “export”) of your WordPress database for each site


upload all of those files and folders to your server create new databases import your dumps to those databases edit your wp-config.php file to reflect the new databases/passwords

once you have all that done, you will then edit the DNS for your sub-domains to point to your server create your virtual sites (I am guessing) in Virtualmin and set the folders to the ones you created and uploaded all the files to

then wait and be patient while those DNS changes take place.

That is it in a nutshell, but you might have more questions and such.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

**Thanks for your reply. ** I used 12.04 because I read somewhere it is a good base to build on and there was a tutorial to follow, if starting again with a fresh droplet is needed I will do that no problem. Researching the net I saw a lot of differing opinions as to what to use for Wordpress sites, some say NGINX is best some say Apache with Varnish, I got a little overwhelmed! Virtualmin has features to create domains and subdomains but I can not figure out how to import files. The existing live sites are accessible with Cpanel but I am unsure where exactly to put all the files on my new server, as they are live it would not be good if I make a serious error! My reason for building the server is to speed up page load times of my Wordpress sites so I want to get it right first time if I can. The shared host was giving page load times around 5 seconds after I optimized the sites as much as possible, so I thought VPS is way to go. Thanks again for the input, I am a senior citizen so the learning process is a little slow!