Rename a wiki

From Wikitech
Revision as of 20:28, 26 January 2011 by JeLuF (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This document describes a possible approach to renaming a wiki.

This is a Request for comments and has not been reviewed yet.

Assumptions

  • The language code of a wiki shall be renamed. The wiki keeps its "class" (e.g. wikipedia, wikiversity, etc).
  • The languagecodes "old" and "new" will be used to name the old and new wikis. "newwiki" and "oldwiki" are the names of the new and old databases.

Approach

  1. Add the new language code and the language name to languages/Names.php
  2. Create messages/MessagesNew.php and, if necessary, classes/LanguageNew.php
  3. Add the language code to /home/wikipedia/common/langlist
  4. Set oldwiki to read-only
  5. Create a mysql dump of the database oldwiki
  6. php maintenance/addwiki.php --wiki=oldwiki new newwiki newwiki new.wikipedia.org
  7. Set newwiki to read-only
  8. Import the database dump of the old wiki into the new database.
  9. Change all settings in InitialiseSettings.php and, if necessary, in flaggedrevs.php etc pp
  10. Move the images from /mnt/upload6/project/old to /mnt/upload6/project/new and from /mnt/thumbs/project/old to /mnt/thumbs/project/new
  11.  ??? Do we have to do any changes for SUL?
  12. Update the interwiki cache: php maintenance/dumpInterwiki.php -o cache/interwiki.cdb
  13. sync-common-all
  14. Add the new wiki in the DNS zone
  15. Set newwiki to read-write
  16. Set up redirects from old.project.org to new.project.org in /home/wikipedia/conf/redirects.conf
  17. If no other wikis with language code old exist, remove old from /home/wikipedia/common/langlist
  18. Remove oldwiki from all *.dblist files
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox