WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Cloning Live Website to Localhost (3 posts)

  1. cardan
    Member
    Posted 2 years ago #

    Hello all,

    I am working for a client and I am trying to clone his website to my localhost. To do this, I made database backup using wp-db manager plugin (Lester Chan's), downloaded the DB, make a new database using Phpmyadmin and import the one I have downloaded (the website-to-clone's database).

    Then in Phpmyadmin I go to the new database, choose wp_options and changed the "siteurl" and "home" to http://localhost/.

    In wp-config.php, I put this:

    define('DB_NAME', 'newly-created-database');

    Well.. needles to say it doesn't work :P. When I go to "http://localhost/wordpress/" it shows the new website in a broken form (like no CSS whatsoever) and if I go to "http://localhost/newly-created-database/" I got object not found error.

    My questions are:

    1. What did I do wrong?

    2. As I said, this is a client's website and he has lots of plugins and modifications on his theme. Is there something that possibly would interrupt in this cloning process? If there is, where should I look?

    Thanks in advance.

  2. vtxyzzy
    Member
    Posted 2 years ago #

    If you import a database backup without modifying it, there will be lots of embedded links that still point to the old site.

    I have had good luck using the WP Migrate DB plugin to make the necessary changes to the DB.

  3. cardan
    Member
    Posted 2 years ago #

    Hello,

    Thank you for replying. It is resolved now. I forgot that the database I imported already has a name. So adjusting the database name (to the original name instead of what I create in phpmyadmin) in wp-config did the trick.

    Regarding the links not really.. I don't click every links but all looks good so far. I changed the permalink to default (that ugly p=1223 links) and all works.

    Yeah, I saw that plugin too when I was researching of how to clone the website.

    PS: Interesting nickname you have there ;)

Topic Closed

This topic has been closed to new replies.

About this Topic