WG/OBIT/Mediawiki Host Move
Preparation
Created hosting order for wiki2.occupyboston.org. Hosted on attucks. User `obwiki2'.
Populate obwiki2's authorized_keys and authorized_user_ids.
Run
monkeysphere-authentication update-users obwiki2
Add obwiki2 to the occubosweb group.
occupyboston.org has address 209.234.253.249. That's varnish. Create an A record for wiki
wiki2.occupyboston.org. IN A 209.234.253.248
Setup ssh keys, so that obwiki2@attucks can ssh to obwiki@boggs.
git repository setup
cd wiki2.occupyboston.org/include mkdir site_hub cd site_hub git clone --bare ssh://obwiki@boggs.mayfirst.org/home/members/occupyboston/sites/wiki.occupyboston.org/users/obwiki/wiki.occupyboston.org/include/site_hub .
Copy files
rsync --archive --verbose obwiki@boggs.mayfirst.org:/home/members/occupyboston/sites/wiki.occupyboston.org/users/obwiki/wiki.occupyboston.org/web/ .
Copy rewrite rules from wiki.occupyboston.org => wiki2.occupyboston.org
Create database obwiki2 on attucks.
Transfer database:
boggs> mysqldump ob_wiki | xz -c > ob_wiki.sql.xz attucks> xz -d < ob_wiki.sql.xz | mysql obwiki2
Test
Actual Migration
Copy include/site_hub/hooks/post-update from boggs -> attucks.
Put up maintenance page
RewriteRule ^.* /maintenance.html [L]
On boggs, move LocalSettings.php aside
mv web/mediawiki/LocalSettings.php web/mediawiki/LocalSettings.php.boggs
re-rsync files (as above)
re-transfer database (as above)
Save copy of wiki.occupyboston.org dns
Permissions (attucks)
cd web/mediawiki chmod -R g-w web/mediawiki find web/mediawiki/images -type d -print0 | xargs -0 chmod g+w
In wiki.occupyboston.org hosting order, disable all of the dns entries.
In wiki2.occupyboston.org hosting order, change all "wiki2" DNS entries to "wiki". A record points to 209.234.253.248.
In wiki2.occupyboston.org hosting order, change "wiki2" => wiki in httpd configuration.
Disable wiki.occupyboston.org hosting order.
Other notes for obit members:
-----BEGIN PGP MESSAGE----- Version: GnuPG v2.0.18 (GNU/Linux) hIwDzeQ9J38y8BUBA/9kINtmOaL0EXRqiaj1J6c+crWT9THBWqIxwklAmLiy8s8g qzIj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