How to move a wordpress blog from localhost to live server (or web server).

Install or Move your wordpress blog to live host in 7 Easy Step

It always had been a pain for a developer to migrate project from one environment to another and with php and static web site which can’t be bundle it like war, dll and exe.

3 years back I use to be a freelance web developer, primarily working with wordpress. When I use complete project and hand it over to client I have sit long hour and support them over remote and phone to make there site live and client don’t want to share there live credential with a freelance(why would they anyway). Then wrote this post and use to give them this doc.

Now there are better way to do this like docker and other. But with small business manually migrating website is the only way.

Step 1. At your hosting server install wordpress. I am using my cpanel godady.

Click on wordpress and follow simple steps to installs

Now wordpress ready with default theme and with Hello Post.

Step 2. Go to your local database or database client in my case I am using phpMyAdmin to connect my database. Then Select your wordpress database and select export option. And you will get a SQL script file like your_database_name.sql

Click on export tab select Quick option and hit go.

Step 3. Now open the sql file in any of your preferred text editor I am using SciTE but even Notepad will work then open find and replace and replace all localhost address to your site address. Like in this case http://localhost/sam to http://www.get24sevensupport.com

Click Replace All

Step 4. Go to hosting database and select all wordpress table by Check All checkbox then select Drop option from the dropdown menu.

Check all the wordpress table and select drop.

Step 5. A confirmation screen will appear onto your with name (or drop table sql) of all the table to drop. then press Yes

Click Yes

All of your wordpress data is moved. Now it’s time to move all of media and themes content to live server.

Step 6. Now connect to your FTP Account via a FTP Client your can use any client you like I am using FileZila. You can even access your FTP via cpanel’s file manger (if your got one in your cpanel). Open the folder www or public_html and their you will get a folder name wp-content. Now delete that folder and upload your local wp-content folder to web host.

Note: With FileZila delete wp-content on the right and drag and drop wp-content from left to right.

Delete wp-content on the right and drag and drop wp-content from left to right.

Step 7. Now got to your browser and open your web site and your are done.

Your are gone live

For any concern and queries comment below

Share :

Subscribe & Social

Subscribe to this blog via RSS.

Recent Posts

Categories

Java 13

Python 2

Wordpress 1

Ops 3

Shared 3

Angular 1

Web 1

Popular Tags

Java (13) Python (2) Wordpress (1) Ops (3) Angular (1) Web (1)

About

DGStack is web blog by digvijay bhakuni. This blog is about computer programming tips and trick. And some short tutorial and gettings started post about the framework, libriay, api and much more. The blog target mostly open source stuff like java, j2ee, nodeJs, angularJs, spring, struts, mongodb, mean, etc

Disclamer

This website claims no credit for any images posted on this site unless otherwise noted. Images on this blog are copyright to its respectful owners. If there is an image appearing on this blog that belongs to you and do not wish for it appear on this site, please E-mail with a link to said image and it will be promptly removed. And the information is best of my knowledge one can always write comment or mail regarding information is this blog.