Help copying and moving a Wordpress site

7 replies
Hi,

I have a wordpress site at discountlovers.com.au

I want to setup a duplicate of that site at discountlovers.com.au/development/ in order to test things, try out new plugins etc without breaking the public site.

I have WP database plugin installed and did a data base backup.

I created the new WP installation in /development/ and uploaded the theme and plugin files.

I then restored the database from the main site and then couldn't access the new site.

I am assuming that one of the settings that got restored was the url of the site. The url of the new site would have been set to just .com.au rather than .com.au/development/ so you can't access or login to the new site.

Is there anyway to edit the url of the site back to /development/ ? I presume I will have to edit the Mysql database or can you edit a config file via ftp?

Maybe there's an easier way of achieving my goal so please tell me!

Thanks,

Dale.
Settled In - Moving to Tasmania Home search and relocation services Hobart Tasmania
Discount Lovers Tasmania – Enjoy Tasmanian quality products and services at a huge discount
#copying #moving #site #wordpress
  • Profile picture of the author riveram269
    You could install a local server with Xamp on your computer and setup a wordpress sandbox to test plugins.

    Read this article on how to install WordPress locally: Installing WordPress Locally

    You can then use your backup on your local server.
    {{ DiscussionBoard.errors[4194330].message }}
  • Profile picture of the author UMS
    Firstly, I'd recommend putting your test site either on a subdomain, eg: dev.discountlovers.com.au or as already suggested, running it locally.

    The reason you currently have issues is that when you restore the database, you need to update all the paths to reflect the new location.

    There are products you can use to clone a WP site like WP Twin, but if you want a cheap (as in free) option, then check out

    WordPress › Duplicator « WordPress Plugins
    {{ DiscussionBoard.errors[4222672].message }}
  • Profile picture of the author sbucciarel
    Banned
    Originally Posted by dalereardon View Post

    Hi,

    I have a wordpress site at discountlovers.com.au

    I want to setup a duplicate of that site at discountlovers.com.au/development/ in order to test things, try out new plugins etc without breaking the public site.

    I have WP database plugin installed and did a data base backup.

    I created the new WP installation in /development/ and uploaded the theme and plugin files.

    I then restored the database from the main site and then couldn't access the new site.

    I am assuming that one of the settings that got restored was the url of the site. The url of the new site would have been set to just .com.au rather than .com.au/development/ so you can't access or login to the new site.

    Is there anyway to edit the url of the site back to /development/ ? I presume I will have to edit the Mysql database or can you edit a config file via ftp?

    Maybe there's an easier way of achieving my goal so please tell me!

    Thanks,

    Dale.
    Settled In - Moving to Tasmania Home search and relocation services Hobart Tasmania
    Discount Lovers Tasmania - Enjoy Tasmanian quality products and services at a huge discount
    Go into the database using phpMyadmin and click on wp_options and then you'll see where the url is and edit it to make it the right url.

    Got complete instructions here
    http://domainingdiva.com/transfer.pdf
    {{ DiscussionBoard.errors[4223091].message }}
  • Profile picture of the author Patrick
    lol @ the instructions given above. Giving incomplete info increases confusion level.

    It is a SIMPLE 5 minute thing. Just do the following..

    1. Make a folder called /development/

    2. Copy all the files in the public_html directory (if you are using cpanel), to the development folder, the folders should be wp-admin, wp-content, etc and all the other files.

    3. Create a database.

    4. This is the main part. Export the current database through phpmyadmin. You will have to change two things, do a search and replace for domain name and path. For domain name, do a search replace all for domain.com to domain.com/development Path is usually /home/public_html/something//. Just search for wp-content and you will see the path.

    5. Save the DB import it to the new database created.

    6. Change the DB settings in the wp-config.php file

    Your site will be moved now !
    {{ DiscussionBoard.errors[4223647].message }}
    • Profile picture of the author sbucciarel
      Banned
      Originally Posted by schwarzes View Post

      lol @ the instructions given above. Giving incomplete info increases confusion level.
      I guess the 11 page pdf I gave is less complete than the 2 paragraphs you gave. Right.
      {{ DiscussionBoard.errors[4223654].message }}
  • Profile picture of the author vanalli
    Yes, it's a simple task. Create the new folder, copy the files, create a new database, export the original datase and then do a "replace all" of the new URL and import it over the new one, edit the wp-config file, make sure the duplicate blog is excluded from search engines and then... get to work!
    {{ DiscussionBoard.errors[4223665].message }}
  • Profile picture of the author Gregg
    Keep your http://yoursite.com/dev and install wordpress into it. Upload your theme and plugins. Go to your original wordpress install and go to tools/ export.

    Under "What to export" make sure the radio button "All content" is selected. Click "Download Export File". This will create an xml file. Save it to your computer.

    Go to new Wordpress install. Go to "Tools/ Import". Under "Import" click Wordpress.

    Install "Wordpress Importer" plugin. Click "Activate and Run Importer".
    Click "choose file" and find the xml file on your computer.

    Click "upload file and import".

    Scroll to bottom and under "Import Attachments" tick "download and import file attachments" and click submit.

    Give it some time to run. When it is done it will say… " All Done, Have Fun!"

    This was the easiest "free" way to duplicate your Wordpress site.

    Hope this helps.
    {{ DiscussionBoard.errors[4223732].message }}

Trending Topics