X-Git-Url: https://scripts.mit.edu/gitweb/www/raw.git/blobdiff_plain/547dd94aa935e1c62f1c7beca0fc7dc00d382b8b..2cc7f5ca726e81c0afaa22e7cfa2175dd64483b3:/faq/85.mdwn diff --git a/faq/85.mdwn b/faq/85.mdwn new file mode 100644 index 0000000..046773e --- /dev/null +++ b/faq/85.mdwn @@ -0,0 +1,41 @@ +[[!meta title="How do I move a scripts.mit.edu site from one locker to another?"]] +If you are trying to move a MediaWiki, please use the detailed +instructions [here](/faq/88). + +In this example, Ben Bitdiddle will be move a wiki to the 6.001 +locker. First he makes sure the 6.001 locker is signed up for the +scripts and SQL services: + +> athena% **add scripts** +> athena% **signup-web** +> ... +> athena% **signup-sql** +> ... + +Then he copies over the files: + +> athena% **attach** bitdiddl 6.001 +> athena% **cp -a /mit/**bitdiddl**/web\_scripts/**wiki +> **/mit/**6.001**/web\_scripts** + +Then he dumps the SQL database, creates a database named *wiki* for +6.001 by logging into [sql.mit.edu](http://sql.mit.edu) as 6.001, +and restores the dump into the 6.001 locker. A database dump can be +created and restored either [with phpMyAdmin](/faq/10/), or with +the command line: + +> athena% **ssh -k scripts** +> [bitdiddl@scripts]$ **mysqldump** bitdiddl+wiki +> **\> database-dump.sql** +> [bitdiddl@scripts]$ **exit** +> athena% **mv database-dump.sql /mit/**6.001**/web\_scripts** +> athena% **ssh -k**6.001**@scripts** +> [6.001@scripts]$ **mysql** 6.001+wiki **< database-dump.sql** + +Finally, he edits the configuration files in +/mit/6.001/web\_scripts/wiki to use the 6.001 locker's username and +password. For MediaWiki, this is done in the file +**LocalSettings.php**. + + +