• Hi!
    First of all , I am an intern working in a small company who has no WordPress experience so far. And I have been playing around and doing research on how to settle my problem.

    1.) I am given an account to manage my website through GoDaddy
    and have access to the cPanel
    2.) I have made a Folder in my FileManager in the Webroot and have setUp WordPress installation already.
    3.) I have access to my wordpress admin page on my website.com/test/wp-admin.

    The things I want to do are
    a) Create a duplicate of my main site ( website.com )and copy all themes and database over to my test site ( website.com/test )
    b.) I Have backed up the both main and test sites and saved the backups in my computer ( using the Online Backup Plugin )

    I was thinking of restoring my main site backup into my test site.
    Is that possible ? and would that scramble the database?

    Please help =) and appreciate all help I can get =)

Viewing 6 replies - 1 through 6 (of 6 total)
  • It sounds like you’re effectively wanting to move WordPress, in which case:
    http://codex.wordpress.org/Moving_WordPress

    Thread Starter gunzbry

    (@gunzbry)

    This info is a little bit overwhelming .. haha
    Im not planning to move. I just want to make a duplicate of my main website to my test website.

    and I want them both to work concurrently .
    Does restoring Files and Database on main website to test do the trick ?

    Follow that guide, if you find it confusing basically you are doing 2 steps.

    1. copy the entire wordpress folder with all files.
    2. go into phpmyadmin and export the database.

    Then you just need to

    1. create a new/separate database if you are making this “look the same” but with different content.
    2. You need to copy the files to the correct location. (rename folder to new location)
    3. In the wp-config.php file you need to enter the correct database and passoword etc.

    and bingo you’re done.

    because you just want to test the website I still recommend creating a new database rather than using and potentially stuffing up the original database.

    edit: I would create a subdomain and have the site there rather than messing about with 2 installations in the same domain. It makes your life easier.

    Just create http://test.yourdomain.com and install the wordpress backup on that. Making sure to edit the wp-config file to reflect the new database and website = test.yourdomain.com

    Other tips:

    • Don’t get confused in the database export/import. just using default settings is fine. One or two mouse clicks to export everything and the same to import everything to the new database.
    • If you had permalinks turned on the original domain you might need to delete the .htaccess and go into settings -> permalinks and click the save button so the .htaccess file is recreated.

    “Im not planning to move. I just want to make a duplicate of my main website to my test website”.
    Anytime you recreate a site in another location, you ARE moving! Garratt has highlighted the main points, and I’d recommend a manual move rather than relying on a restore function.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Creating a test Website for my Main Website’ is closed to new replies.