Support » Installing WordPress » Adding a test or development environment

  • So, before I do upgrades or anything, I’ve added a subdomain with wordpress installed. (

    If I want to duplicate the environment at “” into “” what do I do?

    I’m guessing all I need to do is
    1) back-up “” and restore the back-up into “”
    2) move all the plug-ins and themes (basically copy the folders as is).

    Will this pretty much do it? Is there a way to easily dubplicate the environment so it mirrors real time? If not, I don’t mind using a point in time test environment.

    Also, I assume this is an adequate way to test out upgrades, patches, new themes, plugins, etc…

    Sorry if this has been posted before but I couldn’t find it. Thanks!!!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • * Backup “”

    * I advise that you create a new database for “” to avoid its manipulation from two installations

    * Copy wo-settings file from “” and change to fit the new database

    * Install WordPress

    * Overwrite new database with the old one (be careful with their names, cPanel overwrites based on filename)

    I suggest you don’t mirror anything.

    Copy wo-settings file…
    schestowitz meant: wp-config.php file 🙂

    Oops. Typo, wrong filename and left out extension, which was intentional.

    You guys are so fast it’s amazing. Thank you.

    I assume the following will be straightforward? (just making sure DB names are correct and stuff)

    “Overwrite new database with the old one (be careful with their names, cPanel overwrites based on filename)”

    What I meant to say is that when you restore the database, make sure it replaces the new (void) database and not the old one. It tends to ‘think’ that this is what you want, at least under cPanel and the service it uses underneath. Be backup paranoid at this stage. I know I would.

    Good luck!

    ok – everything worked as planned – “” is intact (and heavily backed up using both automated and manual processes).

    One glitch – “” exists. However, “” redirects me to “” I guess I missed one somewhere. Can you tell me where this is? and how do I fix it if I can’t get to the admin page? If I need to re-run the process, not a big deal – it was not labor intensive.

    Thank You!!!

    OK – so I’m back at this this morning and beginning to think that backing up the DB into a subdomain wasn’t the best way. Why? Well, I’m still having issues with the “” redirecting to “” The other thing is that when I copied the wp-content folder over (all plugins and templates) all hyperlinks on the test page link to the main domain. Logically this should not happen as the sidebar.php doesn’t point to “” specifically. I just can’t figure it out. So perhaps the redirects are all sitting in the DB somewhere. Just an FYI – I did follow all instructions above including the wp-config.php.

    I was hoping to be able to do screenshots as a reference for anyone who wanted to try this, but if I don’t figure this out in the next hour, I’m going to plan B. Plan B is simply to export my posts and import them into “” I’d manually configure the plug-ins and themes to match (mostly copying as well). If I ever get it to work, I’ll provide some screenprints and instructions for what I did.

    If anyone has an idea about the cause of the redirects (that is easy to solve) let me know.


    You have to change the site_url and home values in the options table, see this guide:
    (if the DB was imported it has the old=root values; change them to reflect the new install)

    Thanks – that works perfectly now… and I don’t even have to do screenshots since someone already did it!!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Adding a test or development environment’ is closed to new replies.