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

提供:MoodleDocs
移動先:案内検索
編集の要約なし
94行目: 94行目:
あなたの2.2または2.3インストレーションからのconfig.phpは正常に動作しますが、Moodle 2.4に同梱されているconfig-dist.phpを確認してみると、さらに異なる利用可能なオプションがあります (例 データベースドライバおよび設定)。2.4のconfig-dist.phpを基に、あなたの古いconfig.phpの設定を新しいconfig.phpに設定するのは良いアイデアです。
あなたの2.2または2.3インストレーションからのconfig.phpは正常に動作しますが、Moodle 2.4に同梱されているconfig-dist.phpを確認してみると、さらに異なる利用可能なオプションがあります (例 データベースドライバおよび設定)。2.4のconfig-dist.phpを基に、あなたの古いconfig.phpの設定を新しいconfig.phpに設定するのは良いアイデアです。


==Moodle 2.4において、あなたに影響する可能性のある問題==
==Upgrading more than one version==


=== ブロックケイパビリティ未定義 ===
Normally you can upgrade directly from any Moodle version to any later version. So, for example you could upgrade from 2.0 to 2.1, or from 1.9 to 2.2.


あなたが寄贈/カスタムブロックをインストールしている場合、インストール後にブロックケイパビリティが定義されていないというメッセージが表示されることがあります。例えば、次のようになります:
However, every so often, this general rule gets broken, because supporting really large jumps (for example Moodle 1.6 to 2.2 in one step) would be impossible. Recent break points have been:
* You must have upgraded to version 1.9.x before you can upgrade to a later 2.x version.
* You must have upgraded to version 2.2.x before you can upgrade to 2.3 or later.


The block <blockname> does not define the standard capability block/<blockname>:myaddinstance
If you are upgrading from a pre-1.6 version it is recommended that you upgrade first to the latest 1.6.x, then to the latest 1.9.x and finally to the latest 2.x. See Petr's forum post [http://moodle.org/mod/forum/discuss.php?d=197602#p861964 Re: Continuing on Upgrade docs] for further information.
 
Moodle 2.4において、[[ブロック管理_(管理者)|ブロック使用の管理]]のために、「addinstance」および「myaddinstance」ケイパビリティが追加されました。これらのケイパビリティを寄贈ブロックに定義する場合、[[:dev:Blocks|ブロック開発ドキュメント (英語)]]の「[[:dev:Blocks#Ready.2C_Set.2C_Go.21|Ready, Set, Go!]]」セクションをご覧ください。
 
=== Moodle 2.3での改善点 ===
 
あなたがMoodle 2.2から2.4にアップグレードする場合、[https://docs.moodle.org/23/en/Upgrading Moodle 2.3へのアップグレードドキュメント (英語)]の「Possible issues that may affect you in Moodle 2.3」セクションをご覧ください。


==関連情報==
==関連情報==

2013年4月26日 (金) 16:56時点における版


再作成中です - Mitsuhiro Yoshida

Before you do anything else, read Upgrading to Moodle 2.2

Moodle is designed to upgrade itself from one version to the next. The procedure is

  1. Back up everything.
  2. Replace the old version of the code with the new one.
  3. Log in to your Moodle site and go to Settings > Site administration > Notifications which will then trigger Moodle to self-update.

These steps are explained in more detail below.

Sometimes there are specific considerations when upgrading to a particular version. See the Releases page for more information on this. You also have to be more careful if you have installed additional plug-ins or customised the code.

See this tutorial if you are upgrading Moodle on cpanel. It is a bit rough around the edges and is a little dated, but you should get the idea.

There is also a separate page about upgrading Moodle if you installed it using the Ubuntu/Kubuntu/Debian package manager.

When upgrading a Moodle installation you should follow these steps:

あなたのサイトを実際にアップグレードする前に

You are strongly advised to make a copy of your entire Moodle site onto another computer (see Moodle migration) and run the upgrade there to verify it will work. If you decide not to do this, make sure you have good backups. If the upgrade fails you will need the backups to go back.


必要条件を確認する

あなたのサーバが2.4の必要条件すべてに合致するかどうか、「設定 > サイト管理> サーバ > 動作環境」にて確認してください。

注意: あなたはMoodle 2.2またはそれ以降のバージョンからのみ、Moodle 2.4にアップグレードすることができます。古いバージョンからアップグレードする場合、あなたは最初の段階で2.2にアップグレードする必要があります。

重要なデータをバックアップする

アップグレード前にバックアップすべき対象が3つあります:

  1. Moodleソフトウェア (例: サーバ/htdocs/moodle内のすべて)
  2. Moodleにアップロードされたファイル (例: サーバ/moodledata)
  3. Moodleデータベース (例: MySQLまたはPostgresデータベース)

詳細はサイトバックアップをご覧ください。

あなたのサイトをメンテナンスモードにする

あなたのサイトをアップグレードする前、非管理者ユーザのログインを止めるため、メンテナンスモードに切り替えてください。

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

標準インストールパッケージ

  1. あなたの古いMoodleプログラムファイルを別の場所に移動してください。古いファイルの上に新しいファイルをコピーしないでください。
  2. サーバ内の古いファイルが配置されていた場所に新しいMoodleソフトウェアプログラムのファイルを配置するため、アップグレードファイルを解凍してください。アップグレードに必要であれば、MoodleはSQLおよびmoodledataを調整します。
  3. あなたの古いconfig.phpファイルを新しいMoodleディレクトリにコピーしてください。
  4. 上記で言及したとおり、あなたのサイトにカスタムプラグインをインストールしている場合、それらを新しいコードに追加してください。あなたが最新バージョンのMoodleを取得していることを確認することは大切なことです。特に新しいバージョンのコードに上書きしないよう、十分に注意してください。

Linux

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

次に、あなたのconfig.php、すべての独自プラグイン、そして作成している場合は .htaccessファイルをコピーしてください (最初にカスタムプラグインがあなたの新しいMoodleに合致した新しいバージョンであることをチェックしてください):

cp moodle.backup/config.php moodle
cp -pr moodle.backup/theme/mytheme moodle/theme/mytheme
cp -pr moodle.backup/mod/mymod moodle/mod/mymod

忘れずに、あなたのサーバから moodle/config.php (および他のソースコード) を読めるようにしてください。理想的には、あなたのサーバからファイルに書き込みできないようにすべきです。

あなたがcronを使用している場合、cron.phpに実行権が与えられていること、それから正しいphpコマンドを使用していることに注意してください:

chmod 740 admin/cli/cron.php (some configurations need chmod 750 or chmod 755)

必要であれば、cron.phpの最初の行をコピーしてください (最初の行が '#!/usr/local/bin/php' または '#!/usr/local/bin/php5.3' のようでしたら、'<?php' をコピーする必要はありません)。

Gitを使用する

あなたのMoodleの更新またはアップグレードのためにGitを使用することができます。詳細は管理者用Gitをご覧ください。

コマンドラインアップグレード

Linuxサーバにおいて、Moodle 2.4はウェブブラウザ経由のアップグレードだけではなく、コマンドラインからのアップグレードもサポートします。特定の大規模サイトでは、コマンドラインからのアップグレードの方が信頼できると考えられます。

アップグレードを終了する

最後のステップでは、Moodle内でアップグレード処理を始動させます。

この処理を実行するには、「設定 > サイト管理 > 通知」に移動してください。

Moodleは新しいバージョンを自動的に検知して、必要なすべてのSQLデータベースまたはファイルシステムアップグレードを実行します。極めて稀なケースですが、アップグレードを実行できない場合、あなたが何をすべきか伝えるメッセージが表示されます。

すべてが (エラーメッセージなしに) 正常に修了した場合、あなたの新しいバージョンのMoodleを使って、新しい機能を楽しんでください!

注意: あなたが複数サーバを動作させている場合、すべてのサーバのアップグレードを完了した後、すべてのキャッシュを手動でクリアしてください (「設定 > サイト管理 > 開発 > すべてのキャッシュを削除する」)。

アップグレードの後で

あなたの2.2または2.3インストレーションからのconfig.phpは正常に動作しますが、Moodle 2.4に同梱されているconfig-dist.phpを確認してみると、さらに異なる利用可能なオプションがあります (例 データベースドライバおよび設定)。2.4のconfig-dist.phpを基に、あなたの古いconfig.phpの設定を新しいconfig.phpに設定するのは良いアイデアです。

Upgrading more than one version

Normally you can upgrade directly from any Moodle version to any later version. So, for example you could upgrade from 2.0 to 2.1, or from 1.9 to 2.2.

However, every so often, this general rule gets broken, because supporting really large jumps (for example Moodle 1.6 to 2.2 in one step) would be impossible. Recent break points have been:

  • You must have upgraded to version 1.9.x before you can upgrade to a later 2.x version.
  • You must have upgraded to version 2.2.x before you can upgrade to 2.3 or later.

If you are upgrading from a pre-1.6 version it is recommended that you upgrade first to the latest 1.6.x, then to the latest 1.9.x and finally to the latest 2.x. See Petr's forum post Re: Continuing on Upgrade docs for further information.

関連情報