I created a blog for one of our customers, and I wanted to clone it to 2 other domains. I have spent the whole day creating and customizing it, so there was no way I was going to do it again. The first thing I did, of course, was to google it. I have spent 2 hours researching it and I was not happy with what I found: either not clear, or too complicated, or you had to pay for some software.
I decided to use two plugins:
The first one did not like FTP username (it tested ok, but displayed error message on a real run), while the second created a nice backup, but did not clone it – just displayed the blog within my WP admin page and that’s it – no buttons to continue or any other clues. I skyped a friend, but his internet connection was rubbish at that time. Ok, calm down, I thought – let’s sleep on it.
The next day I used Google again, and … behold. I found this great video. Very easy to follow (for a technical guy like me, at least, and if you’re not technical, than don’t touch technical stuff 🙂 – or give it a go, why not?). Have a look:
Compress your existing WP installation.
Create a new database.
Create a new database user and add it to the new database (make a note of all the names and passwords).
Copy or move the compressed installation to the destination folder and unzip it.
Go to PHPMyAdmin in Cpanel.
Export the old database.
Open the newly created database and import the old one here.
In the new WP installation folder edit wp-config.php.
Change database and username details to reflect the new ones you just created.
Add the below code and modify the URL accordingly.
Save the file.
Test the new site.
I hope this will work for you as well as it did for me. The above scenario is for cloning withing the same hosting account. With two different hosting accounts you will need to log in to Cpanel and PHPMyAdmin twice.