Question
Migrating Three Wordpress Sites To Subdomains.
*Newbie learning as I go! *
I have set up an Ubuntu 12.04 server using Virtualmin and added a blank Wordpress install to “mydomain.com”.
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.
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.
×
I am not familiar with Virtualmin, so someone else will need to chime in about that; however, I have a couple of questions:
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
then…
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.