• Hello,

    In order to be able to test a new theme without messing up a production site that I took over from another person, I embarked into trying to create a duplicate version of it on my MAC (latest OS).

    I have successfully installed the latest versions of MAMP and WordPress, created a database and imported the tables of the production site, replaced the local wp-content folder with a copy of the one in production. Then, I launched the Search-Replace-DB-master code in order to change the URLs.
    At the end of this last step, trying to go to the site after having started the MAMP servers results in MAMP launching “https://www.localhost:8888/” which triggers the sending of an error message advising that the address can’t be found.
    Would you have an idea of what the problem is ? ….

    Note that – for a reason I never understood – the production website presents a mix of URL reading either https://www.mysite.fr/…. or https://www.mysite.fr/sitev3/…
    So I performed several iterations of the Search and Replace algorithm, changing “mysite.fr” with “localhost:8888”, then changing “sitev3/” to “”, and eventually deleting the “https://www.” that I spotted remaining in different tables. Not the cleanest sequence of operations admittedly…

    I’d be grateful if you can help me fix this or advise about another way to perform this duplication without falling in traps !

    Thank you !
    Eric.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Have you tried using the All-in-One WP Migration plugin? I’ve used this plugin to migrate several sites from a local wamp installation to our hosting without any problems.

    You need to install it on both sites, then export as a file from the first site. Then just login to the second WordPress installation and import the file you downloaded from the first site. Make sure to go into your settings and save your permalinks again and you are done!

    I would suggest it instead of having to manually fix all the tables in your current installation. Let me know how it goes!

    Thread Starter esarrat

    (@esarrat)

    Thank you for your feedback Eric, I’ll look into this option.

    Hi Eric

    I’m relatively new to WordPress but if I want to copy a site from one location to another (localhost or hosted package) I use a plugin called Duplicator. It’s basically a ‘one stop shop’

    If it makes sense to me it’s gotta be easy.

    Kind regards

    Tony

    Thread Starter esarrat

    (@esarrat)

    Thank you for the advice, Tony

    Thread Starter esarrat

    (@esarrat)

    Hello,

    Back to work on this subject, I found out that the WordPress site I want to duplicate on my local computer (or on another online host I have readily available if that’s less cumbersome) has the following file structure:

    www folder
    – index/php
    – tennis folder
    – siteV3 folder
    — favicon.ico
    — index.php
    — license.txt
    — readme.html
    — wp-activate.php
    — … all the other wp-… files and folders
    — xmlrpc.php

    Given that the plugins you advised to use seem to be WordPress specific, I wonder whether they’ll be able to duplicate the site entirely. Would you know ?…

    And if that’s not the case, is there another solution ?

    Thank you !

    Sorry Eric, My website experience has been in WordPress so if you’re not able to use the Duplicator plugin I think the safest thing for me to do is defer to someone with more knowledge than me. I don’t want to give you incorrect advice.

    Kind regards

    Tony

    Thread Starter esarrat

    (@esarrat)

    Thanks Tony !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Issue replicating a production web site onto my computer’ is closed to new replies.