Question
I have a twiki setup that I want to move to a different system. I can copy the Web folders from data and pub, but I also want to retain the registered users. How do I copy their info so that the same users can continue as is on the new system? Thanks.
Environment
--
SantoshC - 16 Nov 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Assuming that you are using TWiki's standard user management and that you do not need to merge with an existing installation on the new system:
- Copy the
Main web located in data/Main (as you wrote). This will copy the individual users' home topics, TWiki's user list (Main.TWikiUsers), and also bring in your local settings in Main.TWikiPreferences.
- Copy the
.htpasswd file, usually in data/.htpasswd. You can look up the actual path name using bin/configure in the old installation, or by inspecting lib/LocalSite.cfg with an editor.
- Update the configuration in the new installation to use the same login manager, password manager, and adjust the absolute paths to your directories and the htpasswd file using
bin/configure on your new installation, or manually merge the old and new lib/LocalSite.cfg files.
- If you use
ApacheLogin, adjust the web server configuration on the new server to point to your copy of the .htpasswd file.
A careful comparison of the old and new web server configuration, and the old and new
lib/LocalSite.cfg will help to detect different authentication settings, missing plugins, or others which haven't been enabled.
--
HaraldJoerg - 17 Nov 2007