adsense

How to Copy a WordPress Blog to LocalHost





1. Create a new folder where your 'localhost' files reside. Check the documentation of your Web server installation if you are unsure where this folder is located.
2. Open an FTP client such as FileZilla, SmartFTP or CuteFTP and connect to your WordPress site.

3. Copy over all files from your WordPress site to the folder you created.
4. Log on to the control panel of your WordPress Web host and access phpMyAdmin.
5. Select your WordPress database. Click on 'Export' and 'Go' to download the SQL file.
6. Open the SQL file in Notepad and replace all instances of your domain name with your localhost address. For example, if your WordPress URL is 'mywordpress.com' and you saved all of your WordPress files in the local folder 'wordpress,' find all instances of 'mywordpress.com' and replace them with 'localhost/wordpress.'
7. Access your local computer's phpMyAdmin. If you used a bundled installation such as XAMPP or WAMP, it will be located in localhost/phpmyadmin.
8. Create a new blank database and name it 'wordpress.'
9. Copy all text from your SQL file, go back to the blank database and click on the 'SQL' tab. Paste the copied text in the box provided and click on 'Go.' All database information from your WordPress site is now available on your local computer.
10. Go to your local folder where the WordPress files are located. Open up the 'wp-config.php' file in Notepad.
11. Change the database information to your local computer's information. For the MySQL hostname, enter 'localhost;' for the database username, enter 'root;' and for the database name, enter 'wordpress.' If you have not set a password for your MySQL database, leave the database password information blank. Save your changes.
12. Open your browser and go to 'localhost/wordpress' to view your WordPress site.

Comments

0 Responses to "How to Copy a WordPress Blog to LocalHost"

Post a Comment

Popular Posts

About