Migrate a WordPress site [2019] to a new host and new domain manually | WP Learning Lab

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hey it's Bjorn from WP learning lab in this tutorial I'm going to show you how to move your website from one domain to another now in this move the only thing that's going to change is the domain name all your contents could it be the same your WordPress settings be the same your plugins your schemes everything the same even your permalinks will be the same and we're just going to move the site and we're going to this manually we're not going to use a plug-in I have another tutorial where it shows you how to do the plug-in but by doing it manually you really understand what's going on with your WordPress site and you get more of an insight of how this stuff works so the first thing we have to do is we have to prep our site for the transfer so we're going to backup all the files and we're going to export our database and then step two we're going to put all those things onto the new server with a new domain name new hosting account let's get started so we have this site right here this is the one I'm going to transfer it's my WP PhD demo sites and I just have I don't have a lot customizers really have the title here this is our sandbox for the tagline and this is about it and we're going to put it on this domain called Crafton color just a random domain I have I'm just refreshing the page so you can see that there's nothing here besides the domain name and the text this is crafting color in a few moments well probably a few minutes it's going to look like this as we transfer our entire site to this domain and we even have a few pages of content that we'll show you if I can get back to the dashboard so you can see that the content will be transferred and the permalinks will be maintained so if we go to any one these pages like be HTML page we have this URL and this content here we're going to see that this URL stays the same the permalink stays the same only thing it changes is the domain name you're going to see it in a few minutes so let's get started first thing that I do is back up all the files on this WP - PhD site so we do this I do this usually in the file manager FTP takes too long to download the multix forever actually so I usually go into my FTP I find the root of this right I select all the files I could choose that backup so I select all the actual WordPress files and then I click on compress I choose zip and then I click on compress files actually first I'm going to choose a name I'm going to call it backup for transfer stop tip and then click on compress files this usually takes a few minutes if your site has a lot of content it will take a lot longer and once that's done I'm going to download that zip file done already you can go through all these you don't really have to click on close and then we have this file right here I'm going to click on this download button to download that file now this file it says down here is 34 megabytes if it's bigger than 2 gigabytes I believe you cannot use the upload feature in the file manager if your site sprayed and took a bite you're going to have to use FTP to upload that to your new server we'll talk about that more in a minute so now that we have this file or this zip file that contains all the site files we need to get the database so if we go back into the PHP or sort of the cPanel area we want to go to PHP my admin and this is where all the databases that are in your hosting account are listed if you have more than one you want to make sure you you're using the right database so the way to find out which database you need is you go back into your file manager you open it up a config file by clicking on it and then clicking on edit or code edit and this database name entry right here tells us what the name of databases which is right here what I've highlighted in my case is only one on the server anyway so they really matter if you have more than one that's how you find the right database so I just want to click on that database to open it and here we have all of the contents of that database now make note of wpr 4 as the prefix for this database yours will be different than that but you want to make note of what your prefix is it's the first thing before the first underst or by default it's going to be WP underscore but if it's not the default value we're going to have to make note of this to make this transfer work properly and we'll get back to that as well in a minute next thing we want to do is export this whole database so if we go to the export tab we just use the quick option SQL exports the whole thing and this is our database file so we have down yya our backup for transfer zip and our database backed up so we have a full backup of our entire site right now now we want to go into the hosting account for the place we're transferring it to which in this case is Crafton color and I'm also going to cite in Bluehost which we see here the other one is in motion hosting so they're two different servers two different hosts and what I've done already as you can tell because this this domain name is live is I've added this domain name to my Bluehost account if you need to add an add-on domain to your hosting account I've linked to a tutorial below that shows you how to do that so you want to make sure your domain is active on the new host before you do this transfer so once we're in here what we have to do is just like before find the file manager which is right here in this case I'm just going to open the home directory and then we need to find the folder of the website we're uploading to so we're uploading to Crafton color comm in this demo and there's a folder in the PHP underscore public or sorry public underscore HTML that is called Crafton color right here we're going to open that delete this index file and make sure there's no files presence in this root directory because we're going to upload our other files the ones we just downloaded so if I click on upload and click on choose file it's going to be my downloads folder click on open the start uploading it we've got a progress bar in the bottom right tells us how far along we are and again this will only work if you're uploading less than two big bytes if you're uploading more than two gigabytes you're going to have to use an FTP client to upload and it goes pretty quickly in this case is the small file size so upload is done and we can close this tab and if we refresh this file manager we have our uploaded files here we click on it then click on extract it will extract all those files right into this directory click on close when the extraction is done click on reload again and we can delete this zip file that contained all the files now we have our content all there now we have to do now is if we open that we pay config file we will see that this the BPP HD that is part of my previous hosting account this is going to be different in the new hosting account so we can't use these same database credentials we have to make a new database and then import our old database into that new one so we go head back to our file manager or sorry our cPanel here and we find the MySQL databases just going to do a search for it and there it is MySQL databases click on that icon to open them so we can create a new database and we want to make note of these credentials that we create and I'm going to call this random characters starting with DFW I do now have my username and my database start with the same three random characters or the same three characters difference is not random so we're creating your database called DFW we scroll down create a new user start a DFW and I'm a bunch of other characters I usually generate a password that one looks great check this box otherwise you can't click on use password and then we create the user and we successfully created the user for that account and now I just want to make a note of all the stuff we made so our database name which I should have copied earlier it didn't oops database user name and user name password the password is this that copied that one database name I'm sorry the user name is this and if we go back we're going to find the database name which started with DFW just search for it over here and this is the database name let's copy that put it in this file and now the last step we have to do is link the user to the database so if we scroll right to the bottom of this page we have this added user to database section I want to find the ones that have DFW in the front for both of them this is why I have the same three random characters at the beginning makes it much easier to find when I'm linking them because I have a lot of sites on this server and you can choose all privileges click on make changes and we've successfully added those user or that user to that database that's great click on go back now if I head back to this WP config file this is in our new host with a new domain we open the old TT config file and we have to replace all these credentials with the new ones so I'm just going to copy each one of these and paste them over what's there copy this one and password all right now those are in there we can click on save now we have a database but we just created that in the my sequel database creator so it's a completely blank database right now what we need to do is import the database that we exported earlier so really the only reason we went through all that was just to have a database created and now we're going to go and delete that database or delete the contents of it we're going to keep the database but to leave the content so for that we want to go into the PHP my admin here we have our list of databases which is quite extensive and the DFW is the one we just created click on that to open it as we can see there no tables found if there were tables here we would delete them and then what we want to do is import you're using the import tab I want to import the SQL database that we exported which in my case is this one right here click on open then click on go at the bottom and then we wait and sometimes you don't wait too long like this time here import was successfully finished that's great if we click on the structure tab we now see our database just as it was on the other site you'll notice again the table prefix very important wpr for that may not work for you so if we go back into depending how you ended up transferring as we config file you want to make sure that the table prefix right here is set to the same value that it is set in the PHP my admin so this is one two three four underscore and then the table names you want to make sure that this is one two three four underscore so it has to be the same otherwise this is going to blow up not blow up it's not going to work there's one last very important thing that we have to do and that is find the options table right here WP options click on browse when this is opens you will see that there's first two entries is one called site URL on called home and those are set to the previous domain name these have to be changed to the new domain name and we do that by double clicking on it and just changing it in this case craft in color it's going to copy that whole thing but we'll click on the next one paste it in their craft in color so now we have the site URL and the home URL updated now if we go back to our tab or go back to the site everything went well there's a caching issue on my chrome if I open Firefox click about Firefox sometimes I find with chrome they are caching issues so even though it's showing that it's not supposed to so if we go craft in color in Firefox and in fact Firefox may have the same caching issues I don't even know because I always used Chrome and I go to Firefox to fix it but as you can see Crafton color comm is now our PHP or WP PhD website and it's to confirm that I'm not screwing around here we go to Crafton color in chrome go to that same website and it's going to load WP PhD because it's cached we could load it in Firefox it's not cached everything is gravy and we can also we can even log in with the same credentials we use in WP PhD I don't even know what those are let's go to login page and we'll figure it out in fact we won't figure don't have to go to my LastPass I'll be right back all right so I got my login credentials and these would be the exact same login credentials that you used previously in your previous domain everything is the same except for the domain name is now changed so you've moved your whole site all the content if you recall earlier we looked at the pages area we had our HTML table page we click on View we fit the pages here just like it is over on the other one so if you look at the domain names this is WP - PhD com4 slash HTML - table the same slug the same permalink different domain name same content now there's one thing you might encounter which I encounter sometimes and it might happen if I go to a different page a luxury surprise didn't happen there usually does happen if you go to view a page it might show as broken didn't show it there either but it might show that that page couldn't be found the server and what you do to fix that if you pick the pages that bid bad like clicking the checkbox and you click on to some bulk actions and then edit click on apply change the status to draft and then update and then immediately select those same pages again choose edit click on apply change the status to published and even though all this has to do with permalinks so even though all your permalinks are transferred and they're all the same there's still in the database there's still some some hiccups sometimes that happen as you saw in my case it didn't happen but I have seen happen in the past and the way to fix if you have that happen if you have that error appear which is this resource can't be found I think is the error you just change all the pages status the ones that show that error to draft and then change it back to published and then that solves the problem and again that's due to the permalinks and the problem is easily solved so in this video we learn how to move a website from one domain name to another while keeping everything the same except for the domain name contents the same databases the same plug in the same settings are the same the permalinks are the same and that's how quick and easy it can be done I hope this video helps you - buin all pass from w learning lab please make sure you like this video subscribe to youtube channel share on social media and Suga WP learn lab comm or publish more tutorials like this every single day talk to you soon
Info
Channel: WordPress Tutorials - WPLearningLab
Views: 270,736
Rating: undefined out of 5
Keywords: migrate wordpress site, how to migrate wordpress site manually, manually transfer wordpress site, copy wordpress site to new host, move wordpress site to new domain, migrate wordpress site to new host, transfer wordpress site to new domain, move wordpress site to new host, migrating a wordpress site, copy wordpress site to new domain, transfer wordpress site to new host, how to migrate wordpress site, wpllrandom, wordpress migration, migrate full website to another host 2019
Id: ZJED0dqEx-M
Channel Id: undefined
Length: 17min 45sec (1065 seconds)
Published: Fri Feb 10 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.