]> scripts.mit.edu Git - www/raw.git/blob - faq/85.mdwn
Import from TextPattern
[www/raw.git] / faq / 85.mdwn
1 [[!meta title="How do I move a scripts.mit.edu site from one locker to another?"]]
2 If you are trying to move a MediaWiki, please use the detailed
3 instructions [here](/faq/88).
4
5 In this example, Ben Bitdiddle will be move a wiki to the 6.001
6 locker. First he makes sure the 6.001 locker is signed up for the
7 scripts and SQL services:
8
9 > athena% **add scripts**  
10 > athena% **signup-web**  
11 > ...  
12 > athena% **signup-sql**  
13 > ...
14
15 Then he copies over the files:
16
17 > athena% **attach** bitdiddl 6.001  
18 > athena% **cp -a /mit/**bitdiddl**/web\_scripts/**wiki
19 > **/mit/**6.001**/web\_scripts**
20
21 Then he dumps the SQL database, creates a database named *wiki* for
22 6.001 by logging into [sql.mit.edu](http://sql.mit.edu) as 6.001,
23 and restores the dump into the 6.001 locker. A database dump can be
24 created and restored either [with phpMyAdmin](/faq/10/), or with
25 the command line:
26
27 > athena% **ssh -k scripts**  
28 > [bitdiddl@scripts]$ **mysqldump** bitdiddl+wiki
29 > **\> database-dump.sql**  
30 > [bitdiddl@scripts]$ **exit**  
31 > athena% **mv database-dump.sql /mit/**6.001**/web\_scripts**  
32 > athena% **ssh -k**6.001**@scripts**  
33 > [6.001@scripts]$ **mysql** 6.001+wiki **< database-dump.sql**
34
35 Finally, he edits the configuration files in
36 /mit/6.001/web\_scripts/wiki to use the 6.001 locker's username and
37 password. For MediaWiki, this is done in the file
38 **LocalSettings.php**.
39
40
41