1 [[!meta title="How do I move my MediaWiki to a new locker?"]]
2 Unfortunately, it is a multi-step process to move a MediaWiki
3 installation to a new locker.
5 To move a MediaWiki located in directory `/mit/A/web_scripts/index`
6 to a new directory `/mit/B/web_scripts/index`:
8 \1. Attach the two directories so as to make administrative tasks
13 \2. To sign up the second locker (if necessary)
15 `athena% signup-web B`
17 \3. Copy the Databases using SQL.
18 3b) While in Locker B signup for sql
20 3c) Sign into phpMyAdmin web interface at http://sql.mit.edu/
21 3d) You will need the username and password located in the .my.cnf
22 file of each locker (i.e. `/mit/A/.my.cnf`).
23 3e) Sign into the SQL account for locker A using phpMyAdmin
26 3g) Use the export button to download a copy of the database to
28 3h) Exit and Sign into the SQL account for locker B (NOT
30 3i) Create a new database using the “add” field in the bottom right
31 of the list of databases.
32 3j) Sign into phpMyAdmin for locker B
34 3l) Use the import tool to import the file you just exported from
36 desktop. Be sure to select the correct character set.
38 \4. Recursively copy the software,
39 `athena% cp -r /mit/A/web_scripts/index /mit/B/web_scripts`
42 5a) Update the `/mit/B/web_scripts/index/LocalSettings.php` with
44 wgScriptPath, wgDBname, wgDBuser, and wbDBpassword lines to
48 5b) Update the `/mit/B/web_scripts/index/php.ini` file with the
49 correct locker username for the
50 upload\_tmp\_dir and the session.save\_path (otherwise the computer
52 remember that you are logged in)
56 Helpful site: http://www.mediawiki.org/wiki/Manual:Moving\_a\_wiki