Migrating a WordPress Site From a Local Server to Production

Migrating a WordPress site from local server(localhost) to production(live) server is very easy. Just you need to follow few steps to find your goal.

STEP 1: Upload WordPress project folder to production server using FTP client software (i.e FileZilla FTP Client)

STEP 2: Create a database in production server and keep database host name, database name, user name and password for next time use

STEP 3: Now open and edit  wp-config.php file from production server root folder (where you already uploaded project files) and update your database information

STEP 4: Now go to your local server project database by entering http://localhost/phpMyAdmin/ and  then export project database in .SQL format.

STEP 5: Now go to your production project database and import locally exported .sql file

STEP 6: After importing database go to wp_options table from production server and find option_name siteurl and then update option_value into your production website URL without forward slash in end.

Do same for option_name home (Go page 2 to find this)


Work is done. Now browse your website and find your destination.

Have fun with WordPress.