How to host WordPress website from localhost to live server

| Last Updated: | In: Featured, WordPress, WordPress Beginners


Lots of WordPress beginners are facing this issue to host a WordPress website on live server. So that today I will explain simple & easy steps to host WordPress websites on production server. Let’s start to host WordPress website from localhost to live server.

First create a zip file of your complete localhost’s WordPress website. Now login in cpanel of your website and search the File Manager in search bar and click on file manager icon. A new tab will be open for file manager.

cPanel-file-manager

On this screen open the public_html folder and then click on Upload option to upload your webiste’s zip file. You will be redirected to the new tab, Select zip file from your computer to upload. After complete the file upload go back to the file manager page and select the uploaded zip file and extract in the public_html folder.

file-upload-cpanel

Now open the wp-config.php file from root directory of your website and change the database configuration. Change the database host name, database name, database user, database password and save this file.

How to export MySQL database from PhpMyAdmin

Now visit PhpMyAdmin => select your database => click on export option => select .sql file and click on Go button.

export-mysql-database-from-phpmyadmin

How to import MySQL database using PhpMyAdmin

Open PhpMyAdmin from your cpanel and select your database and click on Import option. Select the .sql file from your computer and click on Go button.

Select database and open the wp_options table. Replace the option value of siteurl and home with your live website url.

Conclusion

Hope this post helps you to host WordPress websites from localhost to live server. Still need help to upload a WordPress website to a server, feel free to add your comments in below comment sections. Do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.

Tags: , , , , ,


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby.


You may also like:

Follow us!

Get Free Access of 400+ Scripts

Don't worry you'll not be spammed!

Featured eBook

WordPress Security Guide

Free Guide: Learn how to implement security guideline in your WordPress site...

DOWNLOAD

Pincode Finder

pincode-finder tool

Online Pincode Finder

Best tool to locate post Office address and pincodes of all india...

SEARCH NOW