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

提供:MoodleDocs
移動先:案内検索
編集の要約なし
編集の要約なし
37行目: 37行目:
あなたは[https://download.moodle.org/ Moodle downloads]から最新版のリリースをダウンロードできます。
あなたは[https://download.moodle.org/ Moodle downloads]から最新版のリリースをダウンロードできます。
=== 標準インストールパッケージ ===
=== 標準インストールパッケージ ===
# Move your old Moodle software program files to another location. ''Do NOT copy new files over the old files.''
# あなたの古いMoodleソフトウェアプログラムファイルを別の場所に移動してください。古いファイルの上に新しいファイルを上書きしないでください。
# あなたの古いMoodleソフトウェアプログラムファイルを別の場所に移動してください。古いファイルの上に新しいファイルを上書きしないでください。
# Unzip or unpack the upgrade file so that all the new Moodle software program files are in the location the old files used to be in on the server. Moodle will adjust SQL and moodledata if it needs to in the upgrade.
# すべての新しいMoodleソフトウェアプログラムファイルがサーバ内の古いファイルが配置されていた場所に配置されるようアップグレードファイルを展開 (解凍) してください。
# Copy your old [[Configuration file|config.php file]] back to the new Moodle directory.
# あなたの古い[[設定ファイル|config.phpファイル]]を新しいMoodleディレクトリに戻してください。
# As mentioned above, if you had installed any plugins on your site you should add them to the new code tree (Moodle directory structure) now. It is important to check that you get the correct version for your new version of Moodle. Be particularly careful that you do not overwrite any code in the new version of Moodle and that you place the plugin folders in the correct directory (the same directory that they are in in the current installation.)
# As mentioned above, if you had installed any plugins on your site you should add them to the new code tree (Moodle directory structure) now. It is important to check that you get the correct version for your new version of Moodle. Be particularly careful that you do not overwrite any code in the new version of Moodle and that you place the plugin folders in the correct directory (the same directory that they are in in the current installation.)
# Your moodledata folder should be located separately to your Moodle code folder and, as such, should not need anything done to it. Moodle 3.0 will throw a warning if it is located in a web accessible folder and the moodledata should never be located in the Moodle code folder. If you are moving your installation to a new server or new location on your server, then you will need to follow the [[Migration]] documents.
# Your moodledata folder should be located separately to your Moodle code folder and, as such, should not need anything done to it. Moodle 3.0 will throw a warning if it is located in a web accessible folder and the moodledata should never be located in the Moodle code folder. If you are moving your installation to a new server or new location on your server, then you will need to follow the [[Migration]] documents.

2022年8月18日 (木) 15:13時点における版


再作成中です - Mitsuhiro Yoshida (トーク)

このページではMoodleのアップグレードに関して詳細を説明します。処理概要に関してはアップグレード概要をご覧ください。

システム要件を確認する

アップグレード前、あなたのサーバがすべての 3.5 のシステム要件に合致するか「サイト管理 > サーバ > 動作環境」で確認してください。

サーバおよびクライアントの両ソフトウェア要件に関して、開発者ドキュメント内の リリースノート をご覧ください。

Notes: 注意:

  • Moodle 3.6またはそれ以降のバージョンからのみMoodle 3.5 にアップグレードできます。古いバージョンからアップグレードする場合、最初に3.6にアップグレードする必要があります。

アップグレード前に

あなたが希望するよう動作するか確認するため、実運用サイトのコピーを使用したアップグレードのテストをお勧めします。

あなたのサイトでアップグレードキーの設定をお考えください。

インポートデータをバックアップする

すべてのアップグレードの前にバックアップすべき場所が3箇所あります:

  1. Moodleソフトウェア (For example, everything in server/htdocs/moodle)
  2. Moodleアップロードファイル (例: server/moodledata)
  3. Moodleデータベース (例: PostgresまたはMySQLデータベースダンプ)

具体的な情報はサイトバックアップをご覧ください。

プラグインの更新を確認するCheck for plugin updates

あなたが自動更新の適用を有効にしている場合、インストール済みのプラグインをアップグレード中に自動更新できます。プラグインのチェック画面で確認ボタンをクリックして利用可能な更新を確認してください。

あなたがプラグインを手動インストールした場合、 あなたのサイトにインストールしたプラグイン (テーマを含む) に利用可能な 3.5 バージョンがあるかどうか、Moodleプラグインディレクトリを確認しても良いでしょう。もし、該当するバージョンがある場合、プラグインパッケージをダウンロードしてください。次のステップではダウンロードおよび展開したファイルをあなたのMoodleコードの適切な場所にコピーしてください (詳細はプラグインのインストールをご覧ください)。

そして、プラグインのアップグレードはMoodleアップグレード処理の一部として処理されます。

古いプラグインがあなたのアップグレードを失敗させている場合、通常、Moodleからアンインストールするのではなく、プラグインコードを削除してください。これによりプラグインに関連するデータが削除されることはありません。

あなたのサイトをメンテナンスモードに切り替える

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

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

あなたはMoodle downloadsから最新版のリリースをダウンロードできます。

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

  1. あなたの古いMoodleソフトウェアプログラムファイルを別の場所に移動してください。古いファイルの上に新しいファイルを上書きしないでください。
  2. すべての新しいMoodleソフトウェアプログラムファイルがサーバ内の古いファイルが配置されていた場所に配置されるようアップグレードファイルを展開 (解凍) してください。
  3. あなたの古いconfig.phpファイルを新しいMoodleディレクトリに戻してください。
  4. As mentioned above, if you had installed any plugins on your site you should add them to the new code tree (Moodle directory structure) now. It is important to check that you get the correct version for your new version of Moodle. Be particularly careful that you do not overwrite any code in the new version of Moodle and that you place the plugin folders in the correct directory (the same directory that they are in in the current installation.)
  5. Your moodledata folder should be located separately to your Moodle code folder and, as such, should not need anything done to it. Moodle 3.0 will throw a warning if it is located in a web accessible folder and the moodledata should never be located in the Moodle code folder. If you are moving your installation to a new server or new location on your server, then you will need to follow the Migration documents.

Linux

mv moodle moodle.backup
tar xvzf moodle-latest-3.5.tgz

Next, copy across your config.php, any custom plugins, and your .htaccess file if you created one (check that custom plugins are the correct version for your new Moodle first):

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

Don't forget to make moodle/config.php (and the rest of the source code) readable by your www server. For maximum security the files should not be writeable by your server. This is especially important on a 'production' server open to the public internet.

chown -R root:root moodle (Linux debian - or even create a user especially for moodle. Don't use the web server user, e.g. www-data)
chmod -R 755 moodle

If you use cron, take care that cron.php is executeable and uses the correct php command:

chmod 740 admin/cli/cron.php (some configurations need chmod 750 or chmod 755)
copy the first line from cron.php (if it looks like '#!/usr/local/bin/php' or '#!/usr/local/bin/php5.3', no need to copy '<?php') 

if necessary. However, for a simple upgrade, there should be no need to change anything with cron.

Using Git

You can use Git for updating or upgrading your Moodle. See Git for Administrators for details.

Command line upgrade

On Linux servers, Moodle 3.5 supports running the upgrade from the command line, rather than through a web browser. This is likely to be more reliable, particularly for large sites.

Finishing the upgrade

The last step is to trigger the upgrade processes within Moodle.

If you put your site into Maintenance mode earlier; take it out now!

To do this just go to Site administration > Notifications.

Moodle will automatically detect the new version and perform all the SQL database or file system 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!

Note: If you are running multiple servers then you should purge all caches manually (via Site administration > Development > Purge all caches) after completing the upgrade on all servers.

Fatal error: Maximum execution time of 30 seconds exceeded...

If your server uses a main language other than English, you may encounter a 'Fatal error: Maximum execution time of 30 seconds exceeded' when you try to upgrade it. You can increase max_execution_time = 160 on php.ini to allow the scripts enough time to process the language update. Otherwise, you can switch to English as the default language before doing the upgrade and back to your original language after a successful upgrade. See the forum discussion at https://moodle.org/mod/forum/discuss.php?d=119598.

After upgrading

注意: If BigBlueButtonBN was previously installed, because the recordings are processed asynchronously in the background, the data migration starts after the Moodle upgrade has been completed.

This means that in large deployments (with many recordings), the process may take some time (it can be hours) and therefore recordings may not be displayed immediately. But they are still there.

Possible issues that may affect you in Moodle 3.5

Please add items here...

New user tours

Moodle 4.0 has four new user tours highlighting new features. If desired, they can be disabled in Site administration / Appearance / User tours.


See also the list of upgrade_notes-labelled issues and ui_change-labelled issues.

New plugins in Moodle 3.5

BigBlueButton

注意: For recordings to work properly, Cron Jobs must be enabled

BigBlueButtonBN has been contributed plugin for more than 10 years. It enables Moodle to interoperate with a BigBlueButton server and it is part of Moodle 4.0 as a core plugin. For more details see BigBlueButton in Moodle 4.0 When upgrading to Moodle 4.0, there are two possible scenarios.

BigBlueButtonBN was not installed

If the plugin was never installed, there are only two considerations to make.

  • BigBlueButton is disabled by default. Administrators must enable it from Site administration > Plugins > Manage activities and then check the box to accept the data processing agreement.
  • BigBlueButton is an external service. The plugin comes pre-configured with a Free Tier Hosting that comes with some restrictions.
BigBlueButtonBN was already installed

If the plugin was already installed, and the steps were followed correctly, the upgrade should be completed normally. But there are also some considerations to make.

  • BigBlueButton may be disabled by default. If this is the case Administrators must enable it from Site administration > Plugins > Manage activities and then check the box to accept the data processing agreement.
  • BigBlueButton is an external service. The plugin will only change the BigBlueButton credentials if the former Free Tier Hosting `https://test-install.blindsidenetworks.com/bigbluebutton/` was used. If it was not, then the existing service will still be the same.
A general consideration

Regardless of the scenario, there is one general consideration

BigBlueButton is still the repository for recordings, but the metadata is now stored in Moodle, so instead of making a getRecording requests each time a BigBlueButton activity is displayed, the view is entirely populated with Moodle data. While this makes the code more efficient, it also means that every recording needs to be processed as part of the upgrade.

  1. For recordings to work properly, cron jobs must be enabled
  2. Since the recording are processed asynchronously in the background, the data migration starts after the Moodle upgrade has been completed. This means that in in large deployments (with many recordings), the recordings may take some time (it can be hours) to be processed and therefore to be displayed as part of the activities.


The details of the process can be checked in the cron job logs.

And remember that if the Plugin was not uninstalled, and the pre-existing rooms are there, the recordings are still referenced. Nothing is lost even if they are not shown immediately. They only need to be migrated.

New capabilities in Moodle 3.5

  • mod/bigbluebuttonbn:addinstance
  • mod/bigbluebuttonbn:addinstancewithmeeting
  • mod/bigbluebuttonbn:addinstancewithrecording
  • mod/bigbluebuttonbn:deleterecordings
  • mod/bigbluebuttonbn:importrecordings
  • mod/bigbluebuttonbn:join
  • mod/bigbluebuttonbn:managerecordings
  • mod/bigbluebuttonbn:protectrecordings
  • mod/bigbluebuttonbn:publishrecordings
  • mod/bigbluebuttonbn:unprotectrecordings
  • mod/bigbluebuttonbn:unpublishrecordings
  • mod/bigbluebuttonbn:view
  • mod/quiz:emailnotifyattemptgraded
  • moodle/question:commentall
  • moodle/question:commentmine
  • moodle/reportbuilder:edit
  • moodle/reportbuilder:editall
  • moodle/reportbuilder:scheduleviewas
  • moodle/reportbuilder:view
  • qbank/customfields:changelockedcustomfields
  • qbank/customfields:configurecustomfields
  • qbank/customfields:viewhiddencustomfields

Moodle 3.6, 3.7, 3.8, 3.9, 3.10 and 3.11 improvements

Depending on which version you are upgrading from, please see the section 'Possible issues that may affect you' in the documentation

Any questions about the process?

Please post in the Installing and upgrading help forum on moodle.org.

See also

旧「アップグレード」ドキュメント

このページでは、Moodleをアップグレードする方法について詳しく説明しています。プロセスの概要については、アップグレード概要を参照してください。

要件を確認してください

サイト管理 > サーバ > 環境 から3.8のすべての要件を満たしていることを確認してください。

[1][2]の両方のソフトウェア要件については、開発ドキュメントの[3]を参照してください。

ノート:

  • Moodle3.2以降からのみMoodle 3.8にアップグレードできます。以前のバージョンからアップグレードする場合は、最初のステップとして3.2にアップグレードする必要があります。

アップグレードの前に

最初に本番サイトのコピーでアップグレードをテストして、期待どおりに機能することを確認することをお勧めします。

サイトにアップグレードキーを設定することを検討してください。

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

アップグレードする前にバックアップする必要がある3つの領域があります。

  1. Moodleソフトウェア(たとえば、server/htdocs/moodle内のすべて)
  2. Moodleアップロードされたファイル(例えば、server/moodledata)
  3. Moodleデータベース(たとえば、PostgresまたはMySQLデータベースダンプ)

詳細については、サイトのバックアップを参照してください。

プラグインの更新を確認してください

自動更新の適用を有効にすると、アップグレード中にインストールされているプラグインを自動的に更新できるようになります。プラグインチェック画面で(ボタンを使用して)利用可能なアップデートを確認してください。

プラグインを手動で更新する場合は、Moodleプラグインディレクトリで、プラグイン(テーマを含む)で使用できる3.8バージョンがあるかどうかを確認することをお勧めします。以前にサイトにインストールしたことがあります。その場合は、プラグインパッケージをダウンロードしてください。次のステップでは、それをMoodleコードの適切な場所にコピーします(プラグインのインストールを参照)。

プラグインのアップグレードは、Moodleアップグレードプロセスの一部として行われます。

古いプラグインが原因でアップグレードが失敗した場合、プラグインに関連付けられたデータが削除されないように、Moodle内からプラグインをアンインストールするのではなく、通常はプラグインコードを削除できます。

サイトをメンテナンスモードにします

サイトのアップグレードを開始する前に、サイトをメンテナンスモードを使用して、管理者以外のユーザのログインを停止します。次に、現在実行中のcronプロセスが完了するのを待ってから続行する必要があります。

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

ソフトウェアの現在のバージョンは、次のURLで取得できます。

wget http://sourceforge.net/projects/moodle/files/Moodle/stable38/moodle-latest-38.tgz

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

  1. 古いMoodleソフトウェアプログラムファイルを別の場所に移動します。 古いファイルの上に新しいファイルをコピーしないでください。
  2. アップグレードファイルを解凍または解凍して、すべての新しいMoodleソフトウェアプログラムファイルが、サーバ上の古いファイルがあった場所にあるようにします。アップグレードで必要な場合、MoodleはSQLとmoodledataを調整します。
  3. 古い config.phpファイルを新しいMoodleディレクトリにコピーして戻します。
  4. 上記のように、サイトにプラグインをインストールした場合は、今すぐ新しいコードツリー(Moodleディレクトリ構造)にプラグインを追加する必要があります。 Moodleの新しいバージョンに合った正しいバージョンを入手できることを確認することが重要です。新しいバージョンのMoodleのコードを上書きしないように、またプラグインフォルダを正しいディレクトリ(現在のインストールと同じディレクトリ)に配置するように特に注意してください。
  5. moodledataフォルダはMoodleコードフォルダとは別に配置する必要があるため、何もする必要はありません。 Moodle 3.0は、Webアクセス可能なフォルダに配置されている場合に警告をスローし、moodledataをMoodleコードフォルダに配置してはなりません。インストールを新しいサーバまたはサーバ上の新しい場所に移動する場合は、移行ドキュメントに従う必要があります。

Linux

mv moodle moodle.backup
tar xvzf moodle-latest-3.8.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(および残りのソースコード)をwwwサーバで読み取り可能にすることを忘れないでください。最大限のセキュリティを確保するために、ファイルはサーバから書き込み可能であってはなりません。これは、パブリックインターネットに公開されている '本番' サーバでは特に重要です。

chown -R root:root moodle (Linux debian - or even create a user especially for moodle. Don't use the web server user, e.g. www-data)
chmod -R 755 moodle

cronを使用する場合は、cron.phpが実行可能であり、正しいphpコマンドを使用するように注意してください。

chmod 740 admin/cli/cron.php (設定によってはchmod 750またはchmod 755が必要です)
cron.phpの1行目を必要に応じてコピーします('#!/usr/local/bin/php' や '#!/usr/local/bin/php5.3' のような場合は、'<?php' をコピーする必要はありません)

ただし、単純なアップグレードの場合は、cronで何も変更する必要はないはずです。

Gitの使用

Gitを使用してMoodleを更新またはアップグレードできます。詳細については、管理者用Gitを参照してください。

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

Linuxサーバでは、Moodle 3.8は、Webブラウザーではなく、コマンドラインからのアップグレードの実行をサポートしています。これは、特に大規模なサイトの場合、より信頼性が高くなる可能性があります。

アップグレードの終了

最後のステップは、Moodle内でアップグレードプロセスをトリガーすることです。

以前にサイトをメンテナンスモードにした場合。今すぐ取り出してください!

これを行うには、 サイト管理 > 通知 に移動します。

Moodleは自動的に新しいバージョンを検出し、必要なすべてのSQLデータベースまたはファイルシステムのアップグレードを実行します。それ自体では実行できないことがある場合(非常にまれです)、何をする必要があるかを示すメッセージが表示されます。

すべてが順調に進んでいる(エラーメッセージがない)と仮定すると、新しいバージョンのMoodleを使い始めて、新しい機能を楽しむことができます!

注:複数のサーバーを運用している場合は、すべてのサーバーのアップグレードが完了した後に、手動ですべてのキャッシュを消去する必要があります("サイト管理 > 開発 > すべてのキャッシュを消去")。

致命的なエラー: 最大実行時間が30秒を超えました...

サーバが英語以外の主要言語を使用している場合、サーバをアップグレードしようとすると、'致命的なエラー: 最大実行時間が30秒を超えました' というメッセージが表示される場合があります。 php.iniでmax_execution_time = 160を増やして、スクリプトが言語の更新を処理するのに十分な時間を確保できます。それ以外の場合は、アップグレードを実行する前にデフォルト言語として英語に切り替え、アップグレードが成功した後に元の言語に戻すことができます。 https://moodle.org/mod/forum/discuss.php?d=119598 でフォーラムディスカッションを参照してください。

アップグレード後

Moodle 3.8であなたに影響を与える可能性のある問題

コース概要の改善

新しいコース概要設定により、管理者は次のことが可能になります

  • 現在利用可能なレイアウト(カード、リスト、要約)を減らします
  • コースのカスタムフィールド値を使用するカスタムフィルタの提供など、使用可能なフィルタオプションを指定します

コースリクエストの変更

ケイパビリティmoodle/course:requestおよびmoodle/site:approvecourseがカテゴリコンテクストに適用されるようになりました。

削除された機能

  • 新しいMoodleNetオープンソーシャルメディアプラットフォームの準備の一環として、コミュニティファインダーブロックとコース共有機能が削除されました。
  • ナビゲーションドロワー(ブーストテーマ)とナビゲーションブロック(クラシックテーマ)に参加者リンクがあるため、ピープルブロックは削除されました。

ここにさらにアイテムを追加してください...

22)%20AND%20labels%20%3D%20upgrade_notes upgrade_notes-ラベル付きの問題および20fixed%20AND%20fixVersion%20in%20(%223.8%22)%20AND%20labels%20%3D%20ui_change%20 ui_change-ラベル付きの問題

Moodleの新機能3.8

フォーラム

  • forumreport/summary:view
  • forumreport/summary:viewall
  • mod/forum:exportforum
  • mod/forum:grade

H5P

  • atto/h5p:addembed
  • moodle/h5p:deploy
  • moodle/h5p:setdisplayoptions
  • moodle/h5p:updatelibraries

Moodle 3.2、3.3、3.4、3.5、3.6および3.7の改善

アップグレード元のバージョンに応じて、ドキュメントの '影響を受ける可能性のある問題' のセクションを参照してください。

プロセスに関する質問はありますか?

moodle.orgのインストールとアップグレードのヘルプフォーラムに投稿してください。

関連項目