How to migrate a wordpress site from online host to local host using the duplicator plugin
Articles,  Blog

How to migrate a wordpress site from online host to local host using the duplicator plugin

hi guys and welcome to this WordPress
migration video this is Jamie from and well had a few questions asking you how you actually migrated a site from
online to your local host we’ve covered it the other way around and it’s pretty
much reversing the process so I’ve got a site here to Divi WordPress site is just
a one page scroller and what we’re gonna do is we’re gonna
go in and we’re gonna migrate list download it to my local desktop and get
it working we’re gonna be using xampp for this I’m actually using an older
version but xampp is free software if you need to do this and you can download
it by just hitting xampp there it is and it’ll take you to their site
download xampp here and you can get a Windows version or a Mac version however
you want to do it so if you haven’t got that already I should go ahead and
download that and install it it’s free lightweight okay so I’m gonna put that
away and what we want to do now is download this site so I’m gonna go down
to the dashboard and in this first video we’re gonna do it the easy way with a
plug-in so I’m going to go to plugins there’s many plugins out there that will
do this but I find deeply duplicator is a great plug-in so we’re
gonna go to add new and I like to use the duplicator plug-in it seems to work
fine for me there’s many out there that will do this for you but we’re gonna use
this one too DPL I see 8000 are there it is right there
duplicator and it’s got five stars out of almost 2000 reviews there so it’s
obviously pretty good so go ahead and install it it’s pretty lightweight and
activate it once it’s activated you’ll see it appear in your left hand
menu here duplicator what we want to go do is go over to packages and create a
package create a new one at first obviously there’s nothing there well
this is gonna do it’s gonna create some files which will be our main files for
our website and also our database or database so we’ll hit next it’ll give it a scan everything looks
good here Keiji you might get an error but usually it works absolutely fine
and if you get an error with this plug-in and we’ll show you a way to do
it without a plug-in in the next video so we’re happy all good green lights
let’s hit the bill button you okay and there it is it we’ve got our
installer and our arc I thought just click on them and as you can see they’ll
download them to your desktop here now you want to go to those in a minute put
them somewhere safe because we’re going to need it so now what we’re gonna do
presuming you’ve installed xampp and if you have I’m using a Windows computer
here so if you go to your local drive your main drive is usually the C Drive
but it’s for one thing all your programs are installed on you’ll find it down
here xampp just double click on it and inside
you’re gonna find a folder called htdocs this is where we put all our websites
that we want to work on locally so I’m just gonna double click on that as you
can see I’ve got a whole bunch here already you probably not gonna have very
much in here at all you’ll have a few little files like
restricted and stuff like that in there they’re the default one so I’m gonna
create a new folder however you like to do it and I’ll call this fashion which
is what the sites actually called there we go now what we need to do is
browse to our folder that we downloaded those files to and by default they’ll be
in your download folder open our little folder here and copy them across either
ctrl C to copy and ctrl V to paste or you can drag them from your downloads
folder and they’re there so we’ve got those in there at the moment but there’s
a couple of things that we need to do to set up to be able to do this we actually
got to create a database and a user to be able to install our database to and
to do that or I go to our browser again this is where our site was just now and
to actually open the xampp software you just need to type a localhost but before
you do that if you look down on the desktop here there’s a that’s the xampp
icon there we want to make sure you’ve got xampp running by clicking on the
icon make sure that the Apache and the MySQL are both running if they’re not
even just hit the start but over beside them once you got that up and running
just open your browser and all we need to type in is a localhost LOC al H OS T
no host and here we are like I said I’m using an older version I probably need
to update but it’s been working fine for me so yours might look slightly
different I know that new versions have got the menu across the top here but the
main thing is what we’re gonna use is the PHP myadmin and you will have it
somewhere like I say it may be in the top menu or maybe somewhere else but you
will have it and that’s what you want to click on so click on PHP myadmin
and it’s gonna show you a list of databases you may not have any at all
because if you’ve got a fresh install I’ve got hundreds there what I want to
do is I want to go over to users I want to create a new user so I’m
gonna scroll down the page I’m gonna hit add user and you can call it anything
you want I’m gonna keep it pretty simple I’m gonna call mine fashion anyhow we we’re working locally so I’m
going to use a local host and a password again you really want a strong one but
for simplicity I’m gonna use the same thing for all of mine here I’m going to
use a fashion so I’m just gonna copy that and paste it into the password
field here and then retype it there we paste it there you can generate a strong
password if you just hit that generate button okay Emma if we scroll down a bit
I want to create a database with the same name and grant all privileges to
this user so we’ll have a user called fashion and we’ll have a database called
fashion also and the user will have all the privileges needs to install stuff so
good we’ve got everything we need there let’s scroll down and down on below
we’ve got a button that says and go so we’re gonna hit that there now we’ve
added a new user I don’t need to say that for anybody that wonders what that
was that popped up there I have so many passwords and logins I use a little
plugin it’s free it’s called LastPass if anything if your memory’s not brilliant
like mine it’s a great little tool okay so we’ve got everything we need we’ve
got our database and we’ve got our user so let’s go back to our folder over here
in our xampp htdocs we created the folder fashion and we put our installer
in there so what we’ve got to do we’ve got our browse to this folder here
called fashion and to do that it’s really easy you just need localhost
because we’re working locally again and then the name of the folder
and then we’ve got to actually browse to this file which is called installer PHP
and if you look at the duplicated documentation as they tell you how to do
this but its installer and that’s a PHP file I just go on the properties you can
see it’s a PHP file so its installer dot PHP close that one up so we want to go
to localhost forward slash the name of our file which was fashion forward slash
the name of that file which was installer dot PHP because it’s a PHP
file now when we hit return some amazing things should happen it should pop up
with a little installer questionnaire there we go
and here we are and just want to check the little box I read and accept all the
terms and notices hit next now we’ve got to tell it where we want
it to put everything now and I’m gonna connect and remove all data cuz we’re
gonna connect and remove all data from the database that we just created called
fashion but there’s nothing in there so it doesn’t matter host is localhost
because we’re working locally here database name and it was just fashion
wasn’t it and just copy that user username was fashion and the password
was also fashion I don’t recommend you do this but I’m just doing it for
expediency want to create decent password and some interesting name okay
so we put all that information in there let’s test it to see if it’s gonna work
test database okay it says success success fine good okay let’s hit the
next button that all looks good I hit the Esper
and here it goes it’s pretty lightweight so I thought didn’t take any time at all
so let’s hit the next and it’s telling us the new URLs it’s gonna put in the
old URLs or the ones that we had on the site here which would have been system
22 not net-net fashion etc etc it’s got to change all that to localhost which is
gonna do here so we’ll hit the next button and now we just need to login to
our site and this Login is exactly the same login
that you used for your WordPress site so it’s the same login that you use to get
into your online site before I’ve got mine remembered that’s what that little
plug-in does that I was talking about just now and there we are we’re in our
site first thing we want to do is remove the installation file and that’s
done that and any store data because it just takes up space and clear clear the
bill cache if it’s a large site you might want to leave this step for a
little while make sure there’s nothing still building but this is a small site
so it shouldn’t be a problem at all and that’s a little warning that they’ve
given us just like I said ok we’ve now got our site on our localhost let’s test
it out let’s visit our site there we are as you can see it’s on our localhost
it’s on our local computer here and we can play and edit do what we want with
it migrate it to another another online provider if we want to make sure it
works yep that worked absolutely fine and that is
really simple way of doing things like I say in the next video we’ll do it using
a database migration rather than using a plugin occasionally the plugin won’t
work on larger sites or if there’s some kind of database or database
compatibility issue so there you go I hope you found that useful

Leave a Reply

Your email address will not be published. Required fields are marked *