「予期しないインストールの停止」の版間の差分

提供:MoodleDocs
移動先:案内検索
36行目: 36行目:
アップグレード時のトラブルを避けるには、それぞれのMoodleバージョンを段階的にアップグレードすることをお勧めします。例えば、1.7 -> 1.8 -> 1.9 の順でアップグレードします (1.5または1.6の例外として、1.7はスキップしてください。言い換えれば、1.5 -> 1.6 -> 1.8 -> 1.9の順でアップグレードしてください)。
アップグレード時のトラブルを避けるには、それぞれのMoodleバージョンを段階的にアップグレードすることをお勧めします。例えば、1.7 -> 1.8 -> 1.9 の順でアップグレードします (1.5または1.6の例外として、1.7はスキップしてください。言い換えれば、1.5 -> 1.6 -> 1.8 -> 1.9の順でアップグレードしてください)。


A work-around to this problem is to setup a working Moodle system on your local PC or server using the [http://download.moodle.org Moodle Packages]. Once you have a running Moodle, [https://docs.moodle.org/en/Upgrading_Moodle#Backup_important_data backup the database] and import to your webhost. Then backup the Moodle code itself (the "moodle" directory on your PC) and copy this to your webhost using (for example) FTP. Finally, edit the moodle/config.php file for the new settings that have to be changed for the webhost.
この問題の回避方法には、まず、[http://download.moodle.org Moodleパッケージ]を使用して、あなたのローカルPCまたはサーバで動作するMoodleシステムをセットアップします。Once you have a running Moodle, [https://docs.moodle.org/en/Upgrading_Moodle#Backup_important_data backup the database] and import to your webhost. Then backup the Moodle code itself (the "moodle" directory on your PC) and copy this to your webhost using (for example) FTP. Finally, edit the moodle/config.php file for the new settings that have to be changed for the webhost.


Some Moodlers have found the suggestion in http://moodle.org/mod/forum/discuss.php?d=65786#p297433 helpful, for some unknown reason. It claims that it is because the fopen function in the line (now line 426 instead of 406) was not being given a string as the first argument, but that's not true. It was a string; after the edit it is a string whose first and last characters are single quote marks. The amazing thing is that it works at all after that edit. What's even more amazing is that it fixes the problem, at least for some users. Go figure.
Some Moodlers have found the suggestion in http://moodle.org/mod/forum/discuss.php?d=65786#p297433 helpful, for some unknown reason. It claims that it is because the fopen function in the line (now line 426 instead of 406) was not being given a string as the first argument, but that's not true. It was a string; after the edit it is a string whose first and last characters are single quote marks. The amazing thing is that it works at all after that edit. What's even more amazing is that it fixes the problem, at least for some users. Go figure.

2009年7月24日 (金) 18:17時点における版

作成中です - Mitsuhiro Yoshida 2009年7月14日 (火) 00:16 (UTC)

時々、ページが半分だけ表示されて残りは消えた状態で、テーブル設定時にインストールが停止する場合があります。インストール停止の例および原因は下記のとおりです:


不完全なMySQL命令文

(mysql): SET NAMES 'utf8'
--------------------------------------------------------------------------------
(mysql): SHOW LOCAL VARIABLES LIKE 'character_set_database'
...
...
(これ以上のメッセージは、表示されません)

「続ける」ボタンがありません。

「Scroll to continue」リンクは表示されますが、「続ける」ボタンが表示されません。

注意: 既存のデータベースのアップグレードおよびインストール時のロール生成の段階で画面が固まったようになります。これらの処理には、非常に長い時間がかかります - ですから、しばらくお待ちください。

以下、この問題を解決するため、あなたが試みることのできる解決方法です:

  • MySQLリミットをチェックする。多くの場合、これはMySQLのエラーであり、PHPのエラーではありません。あなたのMySQLデータベースにリミットが設定されていなことを確認してください (例 questionsのリミット)。詳細は、Limiting Account Resources in the MySQL manualをご覧ください。
  • あなたの .htaccessファイルをチェックする。Moodleがウェブホストにインストールされている場合、次の行をMoodleディレクトリの .htaccessファイルに追加してください。これは、問題を解決する方法として知られています。
AddType x-mapp-php5 .php
また、.htaccessをリネームして、無効にすることも試してみてください。

コードのカスタマイズ

また、あなたのコードを過去にカスタマイズしているかどうか確認してください。最新のテーブルを確認して、そのテーブルから参照されているblock、mod、および他のコードを確認してください。例えば、あなたのインストールが途中で止まって、最後のメッセージでフォーラムテーブルが正常に更新されたしたと表示されている場合、/mod/forum/ ディレクトリにカスタマイスされたコードがあるかどうか確認してください。あなたがコードをカスタマイズしている場合、それらのコードをバックアップした後、正しいコードと入れ替えてください。config.phpをリネームするか、バックアップからデータベースを再インストールすることで、あなたはインストール処理をリスタートすることができます。インストールが正常に終了した場合、あなたが修正しているコードを元に戻すことができます。

メモリーリミットの確認

恐らく、あなたのphp.iniの設定において、「memory_limit」に小さすぎる値が設定されていると考えられます。あなたのphp.iniファイルを確認して、推奨値を割り当ててください (詳細は、システム要件をご覧ください。)。Moodle 1.8以降では、少なくとも40MBの設定が推奨されています。

増分アップグレード

アップグレード時のトラブルを避けるには、それぞれのMoodleバージョンを段階的にアップグレードすることをお勧めします。例えば、1.7 -> 1.8 -> 1.9 の順でアップグレードします (1.5または1.6の例外として、1.7はスキップしてください。言い換えれば、1.5 -> 1.6 -> 1.8 -> 1.9の順でアップグレードしてください)。

この問題の回避方法には、まず、Moodleパッケージを使用して、あなたのローカルPCまたはサーバで動作するMoodleシステムをセットアップします。Once you have a running Moodle, backup the database and import to your webhost. Then backup the Moodle code itself (the "moodle" directory on your PC) and copy this to your webhost using (for example) FTP. Finally, edit the moodle/config.php file for the new settings that have to be changed for the webhost.

Some Moodlers have found the suggestion in http://moodle.org/mod/forum/discuss.php?d=65786#p297433 helpful, for some unknown reason. It claims that it is because the fopen function in the line (now line 426 instead of 406) was not being given a string as the first argument, but that's not true. It was a string; after the edit it is a string whose first and last characters are single quote marks. The amazing thing is that it works at all after that edit. What's even more amazing is that it fixes the problem, at least for some users. Go figure.

関連情報