Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

How to Move a Live WordPress Site to Local Server

Why we are discussing on this topic because we are here to tell you when any developer of WordPress wants to test new themes, plugins, or another development testing. then he creates a local setup of any WordPress site. so let’s look below how to do this?

first of all, you have to take a backup of WordPress site and create a database for it in your localhost/phpmyadmin. Click on New button for creating a new database ( eg. aiaviation ) and put a name for database and click on create button.

Step 2: then take database backup and import in the database and click on Go button.

Step 3: put the backup file in your xampp location (eg.: C:\xampp\htdocs)

file location in xampp

Step 4: Then go to your backup file location and open wp-config.php file in editor

wp-config.php file

Step 5: Then change to your wp-config file like- ‘DB_NAME’, ‘DB_USER’, ‘DB_PASSWORD’, ‘DB_HOST’ and add below two lines to your wp-config file
define(‘WP_HOME’,’http://aiacademy/’);
define(‘WP_SITEURL’,’http://aiacademy/’);

Step 6: now go to your database and select your options table and change siteurl & home column url

mooju_options table column editing

Step 7: Now you have to edit your virtual host file httpd-vhosts.conf and hosts file. for this, you have to open notepad as administrator.

apache vhosts file location
hosts file location

Step 8: add this lines to hosts file
127.0.0.1 aiacademy
::1 aiacademy

Step 9: after that add below lines to httpd-vhosts.conf and change DocumentRoot, ErrorLog, CustomLog and Directory location with your site name and location.

after all above setup your site will be available in localhost and you can make changes. if you find any bug then you check out bugs on stackoverflow and wordpress support page .

Thanks for supporting us and if you have any question then comment us we will give you the best solution to this topic.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
MotoShare.in provides the perfect two-wheeler for every occasion—daily commuting, weekend escapes, tourist exploration, or test-riding your dream bike. Simplify your mobility with us!

Related Posts

What is CodeIgniter and use cases of CodeIgniter?

What is CodeIgniter? CodeIgniter is an open-source PHP web application framework designed to simplify and accelerate web development. It follows the Model-View-Controller (MVC) architectural pattern and provides…

Read More

What is PHP and use cases of PHP?

What is PHP? Are you wondering what PHP is and how it works? Look no further! In this article, we will explore the ins and outs of…

Read More

Complete guide on PHP certification courses, tutorials & training

What is PHP Hypertext Preprocessor is known as PHP. Many developers use PHP, an open-source server-side programming language, to create websites. In addition, it is a general-purpose…

Read More

Complete PHP with Laravel Certification Guide & tutorials

What is PHP with Laravel? PHP was visioned eventually in the fall of 1994 by Rasmus Lerdorf. PHP means Hypertext Preprocessor. It’s a extensively- used, open source…

Read More

Top 50 PHP Interview Questions and Answers

1) What is PHP? PHP is an open-source, interpreted, and object-oriented scripting language that can be executed at the server-side. PHP is well suited for web development….

Read More

Complete guide of PHP certification courses, tutorials & training

PHP is a great beginner programming language for anyone who is wanting to cross over into the coding world. Though easy to learn, it is an extremely…

Read More