{"id":102127,"date":"2023-10-14T07:45:03","date_gmt":"2023-10-14T07:45:03","guid":{"rendered":"https:\/\/www.vwthemes.com\/?p=102127"},"modified":"2023-10-14T07:45:05","modified_gmt":"2023-10-14T07:45:05","slug":"wordpress-localhost-to-live","status":"publish","type":"post","link":"https:\/\/preview.vwthemesdemo.com\/old_website\/wordpress-localhost-to-live\/","title":{"rendered":"How to Move Your Website from a WordPress Localhost to Live Server"},"content":{"rendered":"\n<h2 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-introduction\"><strong>Introduction<\/strong><\/h2>\n\n\n\n<p class=\"has-black-color has-text-color\">You must be ready with your website design and development, right? But wait, your website must be built on the local host. Most developers find it more suitable to design a website on a local host. This stage is done on the personal computer or device developers have. Web design becomes fast and easy to manage on a local server. But that is okay when you are just designing it. We are going to help you move WordPress localhost to live server using different methods.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\">To make it accessible for end users, you need to switch WordPress from the local host to the live server. Shifting your website to the live server helps users access the website. And moving your website on WordPress from a local host to a live server is what this blog shows.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-why-move-your-website-from-a-wordpress-localhost-to-a-live-server\"><strong>Why move your website from a WordPress localhost to a live server?<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>As you know, the web design and development are done on a local host server. And when it is completely ready, you need to switch to the live server.<\/li>\n\n\n\n<li>Most developers find it secure and fast to get their web design ready on the local host. Creating changes on the website is easier on the local server than on the live server.<\/li>\n\n\n\n<li>When the design is completed, it becomes easier to upload it to the live server. And here, we bring you the most effective two methods to apply.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-things-to-do-before-moving-your-website-from-a-wordpress-localhost-to-a-live-server\"><strong>Things to do before moving your website from a WordPress localhost to a live server<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Before getting into the process of moving your WordPress localhost to live server, you must keep some things in mind.<\/li>\n\n\n\n<li>First of all, you must keep your website up with a good hosting service. This is required as your website will be protected from security breaches.<\/li>\n\n\n\n<li>Then there is a need to connect your domain name to the web host. This may happen when you have different platforms for web hosting and domain names.<\/li>\n\n\n\n<li>Keep your control panel login details safe with you.<\/li>\n\n\n\n<li>Also, you need to have the Secure File Transfer Protocol details that are present on the hosting control panel.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-methods-to-move-your-website-on-wordpress-from-localhost-to-live-server\"><strong>Methods to Move Your Website on WordPress from Localhost to Live Server<\/strong><\/h2>\n\n\n\n<p class=\"has-black-color has-text-color\">A. Move the WordPress localhost to the live server using a plugin.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\">B. Move the WordPress localhost to the live server manually.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-black-color has-text-color\"><strong>A. Move the WordPress localhost to the live server using a plugin.<\/strong><\/h3>\n\n\n\n<p class=\"has-black-color has-text-color\">The first method is quite easy, as we are using the Duplicator plugin for this. It is as easy as beginners can even use.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"772\" height=\"250\" src=\"https:\/\/www.vwthemes.com\/wp-content\/uploads\/2023\/10\/banner-772x250-19.png\" alt=\"\" class=\"wp-image-102528\" srcset=\"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2023\/10\/banner-772x250-19.png 772w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2023\/10\/banner-772x250-19-64x21.png 64w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2023\/10\/banner-772x250-19-300x97.png 300w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2023\/10\/banner-772x250-19-768x249.png 768w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/figure>\n<\/div>\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-1-get-the-duplicator-plugin-installed-and-activated\"><strong>1. Get the Duplicator Plugin installed and activated.<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>And for this, we need to first install and activate the Duplicator plugin on the website.<\/li>\n\n\n\n<li>Once the activation is done, simply visit the Duplicator option under the dashboard. Then click on the Packages page and tap the \u201cCreate New\u201d button.<\/li>\n\n\n\n<li>You will reach the next page, where you need to give a name to your backup, and then click the Next button.<\/li>\n\n\n\n<li>This will start running some tests to see whether everything is working well. Once everything is well, all the tests will be marked &#8220;good,&#8221; and you need to tap the Build button.<\/li>\n\n\n\n<li>The process will begin, and it depends on the size of your website. Once it&#8217;s finished, the next page will display download options for the Installer and Archive pages.<\/li>\n\n\n\n<li>Do not get confused, as you need to tap the \u201cDownload Both Files\u201d link just below it. Downloading both files helps with the easy migration process.<\/li>\n\n\n\n<li>The archive file is a set of all the core files of the website, including images, themes, plugins, and backups. The Installer link will ease the migration by unpacking the archive files from your website.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-2-generate-a-new-database-for-the-new-live-website\"><strong>2. Generate a new database for the new live website.<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Wait, before getting your website <strong><a href=\"https:\/\/www.vwthemes.com\/migrate-wordpress-localhost-live-server\/\">migrate WordPress local live server<\/a><\/strong>, you need to create a MySQL database for the new website.<\/li>\n\n\n\n<li>For this, simply visit the cpanel of your hosting account and tap the database section. Then tap \u201cMySQL Database Wizard\u201d.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The next page will take you to the set name of your database. Tap the \u201cCreate Database\u201d button. The next step is to provide a username and password for the new user and tap the \u201cCreate User\u201d button.<\/li>\n\n\n\n<li>Now, you need to add your database by simply tapping the \u201cMy Privileges\u201d checkbox. To store all the changes, simply tap the &#8220;Make Changes&#8221; button. Your database is now ready.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-black-color has-text-color\">Remember there may be chances of <strong><a href=\"https:\/\/www.vwthemes.com\/sql-injection-in-wordpress\/\">SQL injection in WordPress <\/a><\/strong>so kindly take preventive measures for that. <\/p>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-3-transfer-files-from-the-wordpress-localhost-to-live-server\"><strong>3. Transfer files from the WordPress localhost to live server.<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The next step is to transfer all the installer and archive files from the WordPress local site to the hosting account.<\/li>\n\n\n\n<li>You need to connect your website using the FTP client and make sure the root directory has no data. If any WordPress files are located, simply delete them and paste the archive and installer files.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-4-running-the-migration-script\"><strong>4. Running the Migration Script<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The final step will run the migration script, and for this, you need to visit:<\/li>\n\n\n\n<li>\u201chttp:\/\/websitename.com\/installer.php\u201d<\/li>\n\n\n\n<li>This will directly help you launch the duplicator migration wizard. The installer will start running a few tests to initialize the script.<\/li>\n\n\n\n<li>The next page will ask you to enter database details like username, password, and database name. Once done, simply tap the Validate button to ensure the details are correct.<\/li>\n\n\n\n<li>Click the \u201cNext\u201d button, and the Duplicator will start importing the database backup from the archive to the new database. Even the URLs pointing to your website will get updated with this.<\/li>\n\n\n\n<li>Once done with this, tap the Admin Login button to get into the WordPress admin area of the live site.<\/li>\n\n\n\n<li>After the successful login, the duplicator will clean the installation files. Finally, you have moved the WordPress localhost to live server.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>B. Move the WordPress localhost to the live server manually.<\/strong><\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"250\" src=\"https:\/\/www.vwthemes.com\/wp-content\/uploads\/2023\/10\/local-host-to-live-server-manually.png\" alt=\"\" class=\"wp-image-102532\" srcset=\"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2023\/10\/local-host-to-live-server-manually.png 800w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2023\/10\/local-host-to-live-server-manually-64x20.png 64w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2023\/10\/local-host-to-live-server-manually-300x94.png 300w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2023\/10\/local-host-to-live-server-manually-768x240.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-black-color has-text-color\">This one\u2019s a manual process to move the WordPress localhost to live server. The method applies to those who have good coding and learning skills.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-1-exporting-the-local-server-database\"><strong>1. Exporting the Local Server Database<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The first step requires exporting the local server database using phpMyAdmin.<\/li>\n\n\n\n<li>For this, simply visit \u201chttp:\/\/localhost\/phpmyadmin\/\u201d and then tap your WordPress database.<\/li>\n\n\n\n<li>The next step is to tap the Export button from the menu bar situated at the top of the page. The Export method will let you choose from two options: Quick and Custom.<\/li>\n\n\n\n<li>The Custom option will let you customize the database uploading options. Whereas the Quick option will simply export your database, this is the preferred one. Once you choose the Quick method, tap the Go button to jump to the next step.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-2-uploading-the-file-from-the-wordpress-localhost-to-live-site\"><strong>2. Uploading the file from the WordPress localhost to live site<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The next step is to upload all the local host files to the live site. You need to first connect the FTP client to your web hosting account.<\/li>\n\n\n\n<li>Once you have successfully connected, simply upload all the files to the right directory and move on to the next step.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-3-creation-of-the-mysql-database-on-the-live-site\"><strong>3. Creation of the MySQL Database on the Live Site<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Meanwhile, your files are being uploaded, and you can start creating the database on your live server.<\/li>\n\n\n\n<li>For this, you must log in to the cPanel of your hosting account and tap &#8220;MySQL Database Wizard\u201d from the Database section.<\/li>\n\n\n\n<li>On the next page, you will need to give a name to your database and tap the Create Database button.<\/li>\n\n\n\n<li>The next step is to enter the username and password as a new user and tap \u201cCreate User\u201d.<\/li>\n\n\n\n<li>The next step is to add the new user created by checking the \u201cAll Privileges\u201d box. And then simply tap the Make Changes button to store the new changes. You have created a new database successfully.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-4-import-the-newly-created-database-to-the-live-site\"><strong>4. Import the newly created database to the live site.<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The next step is importing the newly created database. For this, visit the cPanel and reach the Databases section, then the phpMyAdmin option.<\/li>\n\n\n\n<li>In the phpMyAdmin area, you need to tap the newly created database. Then it will display without any tables.<\/li>\n\n\n\n<li>Next, tap the Import button from the top menu list, and then choose the database files from the local site.<\/li>\n\n\n\n<li>Tap the Go button, and your database will be immediately imported to phpMyAdmin.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-5-changing-the-url-of-your-website\"><strong>5. Changing the URL of your website<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The next step is to change the URL of your website to connect safely with the live website.<\/li>\n\n\n\n<li>For this, visit phpMyAdmin and find the wp_options table in the newly created database. Tap the \u201cBrowse\u201d button in front of &#8220;wp_options,\u201d and this will open the list of fields.<\/li>\n\n\n\n<li>In the \u201coptions_name\u201d column, find the site URL option and tap the Edit link in front of it, and the edit window will appear.<\/li>\n\n\n\n<li>You will then find the URL of your localhost in the \u201coption_value\u201d field, which will be replaced by the new live site URL. Simply enter your live website\u2019s URL and tap the Go button.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-6-create-your-live-site\"><strong>6. Create your live site.<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After importing the database and importing the content, it&#8217;s time to set the final stage for your live site. It is related to the configuration of WordPress.<\/li>\n\n\n\n<li>Then an error named \u201cError Establishing a Database Connection\u201d will occur, which is to be fixed.<\/li>\n\n\n\n<li>You need to connect the website using the FTP client and open the wp-config.php file.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-black-color has-text-color\">You will see the following code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>** MySQL settings: You can get this information from your web host. **** \nThe name of the database for WordPress\ndefine( 'DB_NAME', 'database_name_here' );\n\/** MySQL database username *\/\ndefine( 'DB_USER', 'username_here' );\n\/** MySQL database password *\/\ndefine( 'DB_PASSWORD', 'password_here' );\n\/** MySQL hostname *\/\ndefine( 'DB_HOST', 'localhost' );<\/strong><\/code><\/pre>\n\n\n\n<p class=\"has-black-color has-text-color\">The code provides the database name, username, and password that were created earlier. Then you need to save the wp-config.php file and upload it back to the hosting service. Finally, you will get to see your website live.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\">Next, visit the Settings section of the admin dashboard. Then select General Settings, and then tap the Save Changes button at the bottom. This ensures that your website URL is the same everywhere.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color\">Also, you must save the permalink settings under the Settings section.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color\" id=\"h-conclusion\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p class=\"has-black-color has-text-color\">So, you must have now understood how vital it is to move the WordPress localhost to live server. This is the stage when you make your website live in front of end users. And we have made this process easier for you in the above blog. We have depicted the best and easiest two methods to move WordPress from the local host to the live server. The first method is the Duplicator plugin, and the second method is the manual process. After you have moved your website to a live server, you can give your website a fresh look by choosing a <strong><a href=\"https:\/\/www.vwthemes.com\/premium-wordpress-themes\/\">premium WordPress theme<\/a><\/strong>. <\/p>\n\n\n\n<p class=\"has-black-color has-text-color\">To get your perfect theme, there are number of websites and market places to purchase from, I would suggest VW Themes. They have the best variety of WordPress themes and that too at a pocket-friendly price. As of now, their <strong><a href=\"https:\/\/www.vwthemes.com\/best-wordpress-halloween-deals\/\">WordPress Halloween deals<\/a><\/strong> are live, where you can purchase premium themes at a 25% discount. Grab your deals now and visit the site before the deal goes offline.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction You must be ready with your website design and development, right? But wait, your website must be built on the local host. Most developers find it more suitable to design a website on a local host. This stage is done on the personal computer or device developers have. Web design becomes fast and easy [&hellip;]<\/p>\n","protected":false},"author":9250,"featured_media":102538,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-102127","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-about-wp-themes"],"_links":{"self":[{"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/posts\/102127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/users\/9250"}],"replies":[{"embeddable":true,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/comments?post=102127"}],"version-history":[{"count":6,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/posts\/102127\/revisions"}],"predecessor-version":[{"id":102546,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/posts\/102127\/revisions\/102546"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/media\/102538"}],"wp:attachment":[{"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/media?parent=102127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/categories?post=102127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/tags?post=102127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}