• Resolved cardan

    (@cardan)


    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 https://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 “https://localhost/wordpress/” it shows the new website in a broken form (like no CSS whatsoever) and if I go to “https://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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter cardan

    (@cardan)

    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 ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cloning Live Website to Localhost’ is closed to new replies.