In this post, we will walk you through the process of migrating a local WordPress site to a server that is live. This may be done manually or with the help of a plugin.
Building your WordPress website on your own web server makes a lot of sense for a number of different reasons. For one thing, you can avoid having to pay for hosting while you are still in the construction phase of your website. Moving your website to a live server, on the other hand, will provide you with a new difficulty once it is complete and ready to go.
To your good fortune, moving a WordPress website from a local server to a live server is a lot simpler than you may think it would be. It functions in a manner that is analogous to the method of shifting a website from one web host to another.
But before we get into the intricacies, let’s have a little discussion on developing WordPress sites locally, shall we?
What Is Local WordPress Site Development
In order to construct a WordPress website locally, you will first need to configure your computer to function as a local development environment.
This basically encompasses all of the requirements and software that must be present on your local PC in order to develop and browse your website. To put it another way, you are transforming your personal computer into a neighborhood web server (not available from the internet).
In the case of WordPress, the following requirements must be met in order to make use of this content management system (CMS):
- Apache or NGINX, both of which are web servers
- A relational database management system, either MySQL or MariaDB
You can manually set up all of these prerequisites, but the method that is going to be the most convenient for you is going to be to utilize software like WAMPServer that bundles in all of these dependencies.
You may build up full development stacks on your local computer with the assistance of WAMP (Windows, Apache, MySQL/MariaDB, and PHP), as well as a number of additional tools. These stacks will have graphical user interfaces that you can use to operate them. This final step is especially important to pay attention to if you are uncomfortable working with the command line.
You also have access to local WordPress development tools such as DevKinsta, DesktopServer, and Local at your disposal. These offer functionality that is comparable to that provided by bundles like WAMP, XAMPP, or MAMP; however, the interfaces are arguably more user-friendly and are undergoing continuous improvement.
Having a local WordPress site development environment installed on your computer ultimately enables you to rapidly create new projects without the need to spend additional money on hosting those projects. In addition, even if you do not have a connection to the internet, you will still be able to use your computer to browse locally hosted websites.
How to Move WordPress from a Local Server to a Live Site Using a Plugin
Using a plugin is going to be the quickest approach to migrate a local WordPress site to a server where it will be visible to the public whenever you are ready to do so. There are many other WordPress migration plugins available, but All-In-One WP Migration is the one that we think is the best overall option.
This plugin is highly recommended by our team due to the fact that it is compatible with the vast majority of web servers and gives you the ability to export all of your WordPress files (including your photos and media assets) in a single file.
You’ll be able to transfer your local WordPress files straight into your new website using All-In-One WP Migration, or you may use the File Transfer Protocol (FTP). The following is a list of the things that you need to accomplish to get started:
- Install the plugin on your local website.
- Install WordPress on your live server and set up the plugin there too.
In an ideal situation, you’ll have a brand-new installation of WordPress running on your live server. In this manner, you lessen the likelihood that something will go wrong when the migration procedure is being carried out.
When you’re ready, go to your local website’s dashboard, and into the All-In-One WP Migration > Export tab. Here, select the Export To > File option:
You’ll find that the plugin provides you with a number of alternative export location options to choose from, but storing the file on your personal computer is the most straightforward method.
At this point, you also have the option of using All-In-One WP Migration to change any text in your database with the text of your choosing. For instance, if you have been working locally and have been logging in with an administrative login such as “root,” now would be a good moment to change that identity.
You don’t need to bother about adjusting the URLs for your WordPress posts and pages at this point because the plugin will do it for you. Once the export process has begun, depending on the size of your website, it might take some time until it is complete:
After the procedure is finished, you will be able to download a file with the extension .wpress. This file will include your full local website, including the database for it. Keep in mind where you are storing the file since in a moment, we will require access to it.
You are now prepared to navigate to the dashboard of your live site. This website ought to be empty right now, other from the All-In-One WP Migration plugin that’s now installed on it.
Navigate to the All-In-One WP Migration tab on your live site, and then choose the Import option:
If you go to the File menu and select Import From, you’ll be given the option to choose the .wpress file that you just downloaded to your computer. It is important to bear in mind that the file size restriction for uploads may be set rather low depending on the web server that you choose. In most cases, the limit may be easily raised; nevertheless, you should ideally address this matter with the person who is hosting the event.
The premium edition of the plugin gives you the ability to restore backups from a folder that is automatically set up for you by the plugin. This is useful if you wish to import your local site using FTP. Within your FTP client, you may access this folder by going to the following location: public html/wp-content/ai1wm-backups.
When you are inside, you may use FTP to upload your .wpress file to the directory that you want it to be in:
When you have finished uploading your .wpress file, the plugin will identify it as a backup immediately after you have done so.
You should now be able to find an entry that matches to the .wpress file you wish to utilize if you navigate to All-In-One WP Migration > Backups.
Proceed to restore the entry by clicking on the RESTORE option that is located next to it:
No matter the method you choose to use to upload the .wpress file, as soon as you begin the import process, the plugin will warn you that doing so will result in the complete overwriting of your website:
Because you’re using a fresh new installation of WordPress, you shouldn’t run into any issues with this. Allow the plugin to perform its intended function. After the procedure has been completed, you will need to log in to WordPress again.
Remember that because you overwrote your database with the one from your local website, you will need to use the same admin credentials as you used for the local installation. This is something you should keep in mind.
As soon as you log back into your WordPress dashboard, the plugin will display a notification asking you to immediately adjust the structure of your permalinks. It need to resemble the structure that you utilized on your regional website, if at all possible.
That wraps it up! You should now have a carbon duplicate of your local WordPress site on the live server where it is hosted.
If you do not yet have hosting for your website, you should consider constructing it locally using WordPress. Even if you do, having the option to engage in local WordPress development gives you the chance to experiment with a wide variety of brand-new features and test projects that you might not be ready to release to the public just yet.
There is a main way to migrate your local WordPress site to a live server after it has reached the point where it is ready to be seen by the public.
We hope this guide taught you how to migrate a live WordPress site. You might also be interested in getting a WordPress website built for you.