Move Wordpress from LocalHost to Live Host - Softlink Labs

Latest

Post Top Ad

Move Wordpress from LocalHost to Live Host

In This Article we are Presenting the Tutorial of How to Move Your WordPress Website from Localhost to Livehost or Webhost. For that You Need Access to cPanel phpMyAdmin & MySQL Databases. Installed Complete Website on Local Server.

Its Pretty Simple & Easy.


Step I >>>
You Need Installed Complete Website on Local Server. A Domain Name. And Reliable Web Hosting.

Step II >>>
Point Your Domain Name to Your Hosting Provider's Nameservers. 

Step III >>>
Go to Local Server phpMyAdmin. Select Your Database. Click on Export. Select Quick Export Method. Select Format SQL. Click on Go. Your Database Export File Will be Downloaded.

Step IV >>>
Now Copy All of Your Website Files from Your Website's root Folder. And Upload all those Files to Your Host's public_html folder.

Step V >>>
Now Create New Database in Your Hosting. Go to Your cPanel.  click on MySQL Database Wizard. Give Any Name to Your Database & Click on Create.

Step VI >>>
In Next Step Create Database Users. Choose Your Username & Password. Click on Create User. In Next Click on All Privileges. Click on Next Step. Your Database will Be Created Successfully. Now Click on Return Home.

Step VII >>>
Now Go to cPanel Again. Click on phpMyAdmin. login to phpMyAdmin. Select Your Database Created in Step V. 

Step VIII >>>
Click on Import. Choose a Database Exported file Created in Step III. Click on Go. 

Step IX >>>
Now go to phpMyAdmin again. Select Your Database. click on wp_options table. And Change the Value of 'siteurl' & 'home' field to Your Domain Name.
ex. change value to 'http://www.softlinklabs.com' instead of 'http://localhost/softlinklabs/'

Step X >>>
Now Go to cPanel Again. Click on File Manager. Go to public_html folder. Right Click on wp_config.php file. Click on Edit. File Will be Open in Editor.

Step XI >>>
In this File Change the Values of MySQL Database Name, MySQL Database username, MySQL Database password. Assign the New Values we Created in Step V & Step VI. Click on Save Changes.

Step XII >>>
Now Login to Your New Wordpress admin Panel. http://yourdomainname.com/wp-admin/

Step XIII >>>
Go to Settings > General
Click on Save Changes.

Step XIV >>>
Now go to phpMyAdmin again. Select Your Database. Click on SQL and Run Simple Query Given Below.
UPDATE wp_posts SET post_content = REPLACE(post_content, 'localhost/yourlocalhostaddress/', 'http://www.yourdomainname.com/');
ex.
UPDATE wp_posts SET post_content = REPLACE(post_content, 'localhost/softlinklabs/', 'http://www.softlinklabs.com/');
Click on Go

Step XV >>>
Now Login to Your Wordpress admin Panel. Go to Settings > Permalinks. Click on Save Changes.

Its Done. 

Still Hard to Understand.

No comments:

Post a Comment

Post Top Ad