Home / Wordpress Tutorials / Move WordPress site from localhost to live server: The easy way
Wordpress Tutorials

Move WordPress site from localhost to live server: The easy way

Hello guys!! Today I finalized one of my WordPress web design projects and moved to the client-server from my computer(localhost). So, I thought why am I not writing a tutorial for beginners to do it themselves.

OK, let’s dive in.

Step One

I am going to teach you an easy way to do it. There are few other ways too. But this is what I prefer and what I always do. I am using a plugin called ‘Duplicator‘ from Snap Creek. The free version is more than enough to move a WordPress site from localhost to a live server. Go ahead and install it on your website.

Once installed, go to Duplicator > Packages and create a new package.

You can rename your package at the first step.

Then you will see the report. If all good you can click on ‘Build‘.

OK, you have just created the backup file including the database. Download these two files. (just click ‘Installer’ and ‘Archive’ buttons and save them to a folder.)

Great, you are done with the first step. Let’s move our WordPress site to the live server now.

Step Two

OK, now we are going to move the site to the live server. In this case you need to access your server to upload files (Those two files we downloaded in the first step) and we need to create a new database.

So, you can go to the Cpanel > File Manager and upload those files to the Public HTML folder. Another way is to use an FTP client like FileZilla and upload files through FTP.

However, you should be able to access your files with your domain. example: www.your-webiste.com/installer.php

Next, create your database. Go to the phpMyAdmin and click on New.

give a name to your database and click on Create

Now we have to add a user to over database. Click on the Privileges tab > New > Add user account

Now create the new user and grant all privileges to the newly created database. click on the ‘Go’ button on the bottom right corner.

Done. Lest start the migration.

Step Three

Now open your browser and go to www.your-website.com/installer.php. It will open the installer like in the image below. If you did everything as I said and if all good it should say ‘Pass’ for ‘Setup’ and ‘Validation’.

Accept all terms and notices and click on the ‘Next‘ button. it will start to extract the archive file. Once done, you have to connect your database. Enter all details here for the database you created previously and click on the ‘Test Database‘ button to check the connection.

If there’s no error click on the ‘Next’ button. Just click on the ‘Next’ in the 3rd Step. It will connect our database to the site. You will see the below screen as the final step. That means our site migration was successful.

Congratulations!! But don’t forget to log in to the website through this ‘Admin Login’ button. It will automatically delete all files used while installation. (This is a must. For your website security)

Similar Posts

Leave a Reply

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