Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is it possible to clone the plugins and settings from a WordPress site to a new fresh install?

I don't want any of the content from the original site I just want all the plugins used and their settings.

Just ftp'ing the plugins into the new install doesn't work.

It's really important that all the settings are saved from the one site to the other as this will save a huge amount of time.

share|improve this question

migrated from stackoverflow.com Apr 11 '11 at 12:25

This question came from our site for professional and enthusiast programmers.

    
possible duplicate of Easily Move a WordPress Install from Development to Production? –  Jan Fabry May 10 '11 at 7:57

3 Answers 3

up vote 0 down vote accepted

Usually blog settings, sidebars and plugins option are located in wp_options table. If you copy whole table except option_name IN ( 'siteurl', 'home' ), You get whole "old" configuration.

share|improve this answer
    
Is there an easier way than this? –  Rob Apr 11 '11 at 12:37
    
I copied the database down, uploaded all the files from the old site to the new hosting (I changed the database details in the wp-config). I then uploaded the database to the new database. I then went to the login screen for the new site, put in my details but it redirected me to the old site's cms! –  Rob Apr 11 '11 at 13:34
    
in wp_options table, search for values with the old URL and change them for the new. If the problem still exist, check for url in the .htaccess file too. –  petermolnar Apr 11 '11 at 13:47
    
I've shown hidden files in my ftp client but it doesn't show a htaccess file anywhere. Is it possible to remove all the old site's content but keep the plugin data/settings? –  Rob Apr 11 '11 at 13:53
    
Ok, I went into the database for the new site and in the wp_options table I changed the siteURL from the old site to the new site and it's now going to the correct admin. The next problem is that all the pages have the url's of the old site, is this a case of changing the general settings on the new admin? –  Rob Apr 11 '11 at 13:57
  1. Do a database export to a .sql text file.
  2. Do a find/replace in the text file for http://www.olddomain.com and replace with http://www.newdomain.com. This will correct all the old settings across all your posts and options table.
  3. Import file in the new database / website you created.
share|improve this answer

I use blogzapper to clone WordPress installations and it works surprisingly well. It costs around $30. I use it t0 try out new code on clone sites before migrating to a live site.

It will clone your whole install, and then you would have to manually delete your content, but it should still save you loads of time.

http://www.datasystemsplus.net/blog-zapper

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.