「Moodleのアップグレード」の版間の差分

提供:MoodleDocs
移動先:案内検索
37行目: 37行目:
=== ダウンロードアーカイブを使用する ===
=== ダウンロードアーカイブを使用する ===


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.
自分が何をやっているのか分からない場合は、古いバージョンに上書きしないでください ... 時々古いファイルが新しいバージョンに問題を生じさせる場合があります。一番良い方法は、現在のMoodleディレクトリを他の名前にリネームして、新しいMoodleアーカイブを元の場所に解凍する方法です。


  mv moodle moodle.backup
  mv moodle moodle.backup
  tar xvzf moodle-1.1.tgz
  tar xvzf moodle-1.1.tgz


Next, copy across your config.php and any other plugins such as custom themes:
次に、あなたのconfig.phpやオリジナルテーマ等のプラグインをコピーします:


  cp moodle.backup/config.php moodle
  cp moodle.backup/config.php moodle

2006年7月11日 (火) 04:28時点における版

■ 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

ユーザ名の代わりに、あなたのデータベースアカウントを使用してください。-p フラグは、あなたが -u で指定したユーザ名に対するパスワードの入力を求めます。

バックアップコマンドを実行するホスト ( 通常、ウェブサーバ ) とデータベースホストが異なる場合、mysqldumpuコマンドに -h オプションでホストを指定してください:

mysqldump -u username -p -h databasehost -C -Q -e -a moodle > moodle-backup-2002-10-26.sql 

すべてのプラットフォームで同じインターフェースを提供するMoodleの「MySQL Admin」の「エクスポート」機能を使用することもできます。 Moodleの「MySQL Admin」は、http://download.moodle.org/modules/integrations.php でダウンロードすることができます。このプログラムは、PHPMyAdminとMoodleの管理画面を統合したものです。

新しいMoodleソフトウェアをインストールする

ダウンロードアーカイブを使用する

自分が何をやっているのか分からない場合は、古いバージョンに上書きしないでください ... 時々古いファイルが新しいバージョンに問題を生じさせる場合があります。一番良い方法は、現在のMoodleディレクトリを他の名前にリネームして、新しいMoodleアーカイブを元の場所に解凍する方法です。

mv moodle moodle.backup
tar xvzf moodle-1.1.tgz

次に、あなたのconfig.phpやオリジナルテーマ等のプラグインをコピーします:

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!

関連情報