]> scripts.mit.edu Git - www/raw.git/blob - faq/88.mdwn
Import from TextPattern
[www/raw.git] / faq / 88.mdwn
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.
4
5 To move a MediaWiki located in directory `/mit/A/web_scripts/index`
6 to a new directory `/mit/B/web_scripts/index`:
7
8 \1. Attach the two directories so as to make administrative tasks
9  easier:  
10  `athena% attach A`  
11  `athena% attach B`
12
13 \2. To sign up the second locker (if necessary)  
14  `athena% add scripts`  
15  `athena% signup-web B`
16
17 \3. Copy the Databases using SQL.  
18  3b) While in Locker B signup for sql  
19  `athena% signup-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
24  first.  
25  3f) Click on A+index  
26  3g) Use the export button to download a copy of the database to
27  your computer.  
28  3h) Exit and Sign into the SQL account for locker B (NOT
29  phpMyAdmin)  
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  
33  3k) Click on B+index  
34  3l) Use the import tool to import the file you just exported from
35  your   
36  desktop. Be sure to select the correct character set.
37
38 \4. Recursively copy the software,  
39  `athena% cp -r /mit/A/web_scripts/index /mit/B/web_scripts`
40
41 \5. Update settings:  
42  5a) Update the `/mit/B/web_scripts/index/LocalSettings.php` with
43  the wgSitename,  
44  wgScriptPath, wgDBname, wgDBuser, and wbDBpassword lines to
45  reflect  
46  the new locker
47
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
51 will not  
52 remember that you are logged in)
53
54 \6) Be happy.
55
56 Helpful site: http://www.mediawiki.org/wiki/Manual:Moving\_a\_wiki
57
58
59