Using your FTP client, download the wp-config.php file from your live site and open it in a text editor. The next step is to edit your site’s wp-config file to ensure your site uses the correct database. You’ll need to update the home URL as well by repeating these steps for that row. Save this change by clicking on the Go button: Replace your local URL in the option_value box with the one for your live site. In phpMyAdmin, locate the database you just imported and find the wp_options table. Now you’ll have to change your site’s URL. Under the Files to import section, click on the Choose File button and select the database you downloaded earlier:Ĭlick on the Go button at the bottom of the screen to import your database to your live site. From the cPanel dashboard, click on phpMyAdmin, then select the Import tab. Now you can import the database you downloaded to your local site. You can either grant all privileges or select from the available options. You’ll be asked to set privileges for this new user. ![]() Fill in the fields and click on the Create User button: Scroll down to the Add New User section of the MySQL Databases page. Then click on the Create Database button: Under Create New Database, give your new database a name. If your host uses cPanel, you can accomplish this by navigating to the Databases section and selecting MySQL Databases. The next step is to create a new database for your live site and upload the data from your local site to it. ![]() Once you’ve made your selection, click on Go to download your database: You’ll be able to choose either Quick or Custom if you would prefer to tweak some of the options. Once you’re logged in, click on the Export tab at the top of the screen. You can do this using phpMyAdmin. Navigate to and enter the username “root” and the password you use for your local site: Next, you’ll need to move your database from your local site to your live server. Select them, right-click on them, and choose Upload: In the lefthand panel, navigate to where your local site’s files are stored. Select the public_html folder, as this is where you’ll need to upload the WordPress files from your local site. In FileZilla, the righthand panel shows your live site’s filesystem. You can do this using a File Transfer Protocol (FTP) client such as FileZilla.įirst, access your FTP credentials via your hosting account and enter them in your FTP client to connect to your server: However, it also gives you complete control over the process every step of the way.įirst, you’ll need to migrate your WordPress files from your local installation to your live server. Of the two methods we’ll show you in this guide, migrating your site manually is more difficult and does require some technical knowledge. There are a few different ways you can go about it, two of which we’ve outlined below. While localhost is a useful tool, migrating your site to a live server when it’s ready can be confusing if you’re not familiar with the process. How to move WordPress from localhost to a live site (2 methods) ![]() In other cases, you may be using a local staging site to test new plugins, a theme change, or updates before implementing them on your live site. Local development is usually accomplished with help from a platform such as Local by Flywheel, MAMP, or XAMPP. You’ll have plenty of freedom to experiment and can take your time with the process. To start with, you won’t have to worry about breaking the website while making changes to it. While it might seem like you’re creating more work for yourself, there are advantages to developing in a local environment. Once you’ve finished developing it, you’ll need to migrate it to a live server so that you can start attracting visitors. Let’s get started! Why you might need to move a site from localhost to a live siteįirst of all, when you use localhost to develop a website, it merely means you’ve built the site on your computer so that it’s not accessible to the public. Then we’ll show you two methods you can use to accomplish this task. In this guide, we’ll cover some scenarios where you might need to migrate your site from localhost to a live server. Alternatively, there are tools available to make the job simpler and less labor-intensive. If you’re tech-savvy and want more control over the process, you can carry it out manually. It can be extremely frustrating to complete this final step after all the hard work you’ve already put in.įortunately, there are a few ways to migrate your website from localhost to a live server depending on your needs. However, this can be a lengthy process that potentially results in errors. You’ve put a lot of time and effort into creating your WordPress website and you’re finally ready to move it from localhost to a live site.
0 Comments
Leave a Reply. |