Have you completed your project base on localhost? Congratulations :). Now move your WordPress from localhost to live server. Let’s understand the best practice to perform this action.
It would be best to use professional techniques while transferring a locally built website to the live server. You can go with some plugins and also can directly upload zip files. But it will be the best idea to move a localhost website using a plugin like All in One WP migrate.
Get Start to Move localhost WordPress to the live server.
For the localhost machine, your computer is a plot to build a building(website). But for now, you’ve to buy a live server, storage, and Domain name.
Hosting: you can buy it from the best hosting providers like Bluehost, Hostinger, SiteGroud, HostGator. Check which one will suit your needs.
You can buy the domain name from Namecheap, domain.com, BigRock, GoDaddy, etc.
After successfully register your domain and installing the WordPress website. You can move the localhost WordPress to a live server.
Using All-in-One WP Migration Plugin.
When you’re not technical, it will be an excellent option to use a plugin to transfer the WordPress website.
How we perform this action?
In this tutorial, first of all, we’ll install AIO WP migration on both localhost and live WordPress CMS. After that, we take a backup from localhost and upload it to the live server. And that’s it, let’s understand how we perform all the actions.
First, we’ve to take the backup of the WordPress website. This can be done using the All-in-One WP Migration Plugin. Install and activate the plugin. If you don’t know how to install a plugin, then refer to this article.
After installation of the plugin, take a backup of the WordPress website. Just scroll to AIO WP migration Plugin settings and then export. You can export the WordPress backup file using the file option, as displayed above.
Export the WordPress file into your machine and save it. Please note you can use this backup on any blog or website now, so keep it safe and secure.
When your live server is appropriately configured, like installing SSL, you can upload the backup file using the same plugin installed on your live server website.
You can choose import and then scroll to the “file” option provided. And select the location of your localhost backup and upload. If the file size is larger than the allowed size, learn how to increase the upload file size limit.
This upload may take a few minutes, depending on the backup file size, server speed, and internet speed.
After successful upload of the files, you can log in using the localhost ID and passwords. Now your localhost website is live on the internet.
Move WordPress without using any plugin.
We can also move a WordPress website manually from localhost to the live server. You have to perform a little technical task to do this.
In this, we’ve to download all the WordPress files, MySQL database and upload them to the live server. Let’s understand how to perform this action.
Download and Upload WordPress Files
From the localhost machine, copy all files to the online server directory. You can do this using the FileZilla application. If the hosting provider offers a cPanel in case, zip the whole WordPress folder(localhost) and upload it(to the live server). Here you don’t have to copy the wp-config.php file. You can replace that with the live wp-config.php file.
After uploading, extract it to the live server. If you don’t have cPanel, please go with the plugin migration option.
Download and Upload Database.
You’ve to access the phpMyAdmin of the localhost and export all SQL databases. This database file contains the whole structure of your website.
You’ve to click on export and choose format SQL. And then, click on the Go button to download the MySQL database.
Now you’ve to upload this SQL file database to the live server. Access phpMyAdmin page, upload the SQL database file to the existing database, or create a new database and upload it.
If the hosting provider does not provide access to phpMyAdmin, you can use a plugin to migrate your website from localhost to the live server.
I hope this article will help you in uploading the localhost website to the live server. In case of any doubt or query, feel free to ask in the comment section below.