「Moodleのアップグレード」の版間の差分
Mitsuhiro Yoshida (トーク | 投稿記録) 編集の要約なし |
Mitsuhiro Yoshida (トーク | 投稿記録) |
||
7行目: | 7行目: | ||
== 重要なデータのバックアップを行う == | == 重要なデータのバックアップを行う == | ||
この作業は厳密に必要なものではありません。しかし、何らかの理由で旧バージョンに戻る必要がある場合があるかもしれませんので、システムのメジャーアップグレードを行う前にバックアップを行うことは適切な考え方です。実際は、この作業を省略するために、あなたのサーバで毎日Moodleの自動的バックアップを取ればよいでしょう。 | |||
バックアップを取る必要のある部分は3箇所あります: | |||
=== 1. Moodleソフトウェアディレクトリ === | === 1. Moodleソフトウェアディレクトリ === | ||
config.phpやテーマ、言語等のあなたが追加したモジュールを回復できるように、事前にこのディレクトリを別の場所にコピーしてください。 | |||
=== 2. データディレクトリ === | === 2. データディレクトリ === | ||
アップロードしたコンテンツ ( コース資料や学生の課題 ) が入っていますので、このディレクトリのバックアップは非常に重要です。アップグレードにより、時々データディレクトリ内のディレクトリが、リネームされたり移動される場合があります。 | |||
=== 3. データベース === | === 3. データベース === | ||
ほとんどの場合Moodleのアップグレードでは、フィールドの追加または変更によりデータベーステーブルの更新が行われます。それぞれのデータベースシステムでは異なる方法でバックアップを行います。MySQLデータベースでバックアップを取る1つの方法は単一のSQLファイルに「dump」することです。 次の例はUnixコマンドで"moodle"という名称のデータベースをdumpしています: | |||
mysqldump -u username -p -C -Q -e -a moodle > moodle-backup-2002-10-26.sql | mysqldump -u username -p -C -Q -e -a moodle > moodle-backup-2002-10-26.sql |
2006年7月10日 (月) 07:07時点における版
■ ja_utf8/docs/upgrade.htmlをベースに、最翻訳中です。
Moodleは、どの旧バージョンからも新しいバージョンに正常なアップグレードができるよう設計されています。 Moodle1.6に関して配慮すべき内容は、Moodle1.6へのアップグレードをご覧ください。
Moodleをアップグレードする場合、下記の手順に沿って作業を行ってください:
重要なデータのバックアップを行う
この作業は厳密に必要なものではありません。しかし、何らかの理由で旧バージョンに戻る必要がある場合があるかもしれませんので、システムのメジャーアップグレードを行う前にバックアップを行うことは適切な考え方です。実際は、この作業を省略するために、あなたのサーバで毎日Moodleの自動的バックアップを取ればよいでしょう。
バックアップを取る必要のある部分は3箇所あります:
1. Moodleソフトウェアディレクトリ
config.phpやテーマ、言語等のあなたが追加したモジュールを回復できるように、事前にこのディレクトリを別の場所にコピーしてください。
2. データディレクトリ
アップロードしたコンテンツ ( コース資料や学生の課題 ) が入っていますので、このディレクトリのバックアップは非常に重要です。アップグレードにより、時々データディレクトリ内のディレクトリが、リネームされたり移動される場合があります。
3. データベース
ほとんどの場合Moodleのアップグレードでは、フィールドの追加または変更によりデータベーステーブルの更新が行われます。それぞれのデータベースシステムでは異なる方法でバックアップを行います。MySQLデータベースでバックアップを取る1つの方法は単一のSQLファイルに「dump」することです。 次の例はUnixコマンドで"moodle"という名称のデータベースをdumpしています:
mysqldump -u username -p -C -Q -e -a moodle > moodle-backup-2002-10-26.sql
Substitute your database user account for username. The -p flag will prompt you for the password for the username specified by -u.
If your database host ist different from the host you want to execute the backup command (usually the web server), you have to specify it with the -h option to mysqldump:
mysqldump -u username -p -h databasehost -C -Q -e -a moodle > moodle-backup-2002-10-26.sql
You can also use the "Export" feature in Moodle's optional "MySQL Admin" web interface to do the same thing on all platforms. This interface can be downloaded from http://download.moodle.org/modules/integrations.php. It is an integration of PHPMyAdmin for the Moodle administration interface.
新しいMoodleソフトウェアをインストールする
ダウンロードアーカイブを使用する
Do not overwrite an old installation unless you know what you are doing ... sometimes old files can cause problems in new installations. The best way is to rename the current Moodle directory to something else, then unpack the new Moodle archive into the old location.
mv moodle moodle.backup tar xvzf moodle-1.1.tgz
Next, copy across your config.php and any other plugins such as custom themes:
cp moodle.backup/config.php moodle cp -pr moodle.backup/theme/mytheme moodle/theme/mytheme
CVSを使用する
You can use CVS for updating or upgrading your Moodle. First you need to do a CVS checkout in your (empty) Moodle root directory.
For Linux servers
To do a CVS checkout of Moodle, you first have to logon to the Moodle CVS server.
cvs -d:pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle login No password for anonymous, so just hit the Enter button.
Go to the directory where you want the Moodle root to come and type
cvs -z3 -d:pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle co -r MOODLE_15_STABLE moodle (where MOODLE_15_STABLE is the desired version)
To update, just go into the Moodle root directory and update to the new files:
cvs update -dP
Make sure you use the "d" parameter to create new directories if necessary, and the "P" parameter to prune empty directories.
For Windows servers
You can use Tortoise CVS to do the initial checkout and the updates.
If you have been editing Moodle files, watch the messages very closely for possible conflicts. All your customised themes and non-standard plugins will be untouched.
Don't forget to visit the admin page after the CVS update proces has completed.
アップグレードを終了する
The last step is to trigger the upgrade processes within Moodle.
To do this just visit the admin page of your installation e.g. http://example.com/moodle/admin
It doesn't matter if you are logged in as admin or not.
Moodle will automatically detect the new version and perform all the database or filesystem upgrades that are necessary. If there is anything it can't do itself (very rare) then you will see messages telling you what you need to do.
Assuming all goes well (no error messages) then you can start using your new version of Moodle and enjoy the new features!
関連情報
- Using Moodle Installation problems forum
- Upgrading to Moodle 1.6
- Installing Moodle
- Installation FAQ
- Installing Apache, MySQL and PHP
- Step by Step Installation Guide for Windows
- Step by Step Installation Guide for RedHat
- Step by Step Installation Guide for Debian GNU/Linux
- Using Moodle Using cvs forum discussion