Slide 1
Excellent Education Program
Innovative Methods of Teaching

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cum sociis natoque penatibus et magnis dis parturient.

Slide 2
Learning Through Play
Devoted to the Early Education

Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.

Slide 2
Learning Through Play
Devoted to the Early Education

Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.

Slide 2
Learning Through Play
Devoted to the Early Education

Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.

Slide 2
Learning Through Play
Devoted to the Early Education

Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.

Slide 3
Learning Through Play
Find a Class for your Children

Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis.

previous arrow
next arrow

How to Move a Live WordPress Site to Local Server

Spread the Knowledge

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.

Chandan Kumar
Follow Me: