「インストールFAQ」の版間の差分

提供:MoodleDocs
移動先:案内検索
編集の要約なし
1行目: 1行目:
{{FAQ}}
{{FAQ}}


翻訳中です。(^^;
翻訳中です。


== アポストロフィー(')またはクオート(")を追加したテキストは、エラーを生じるかスラッシュが追加されます。==
== アポストロフィー(')またはクオート(")を追加したテキストは、エラーを生じるかスラッシュが追加されます。==
20行目: 20行目:
ヒント: Moodleの詳細設定ページで、デフォルト設定の使用をお試しください。また、smtphostを空白のままにしてください。この設定は、ほとんどのユーザの条件を満たしています。
ヒント: Moodleの詳細設定ページで、デフォルト設定の使用をお試しください。また、smtphostを空白のままにしてください。この設定は、ほとんどのユーザの条件を満たしています。


==Error: database connection failed==
==データベースの接続エラーが発生します。==


If you get errors like "database connection failed" or "could not connect to the database you specified", here are some possible reasons and some possible solutions.
If you get errors like "database connection failed" or "could not connect to the database you specified", here are some possible reasons and some possible solutions.
30行目: 30行目:
# You are using Fedora core 3 or some other Linux system with SELinux installed and enabled. See the following URL for information on how to disable SELinux: http://fedora.redhat.com/projects/selinux/
# You are using Fedora core 3 or some other Linux system with SELinux installed and enabled. See the following URL for information on how to disable SELinux: http://fedora.redhat.com/projects/selinux/


==I can't log in - I just stay stuck on the login screen==
==ログインできません - ログイン画面から先に進みません==


The most common cause for this is that your own computer (not your Moodle server) has a firewall that is stripping referrer information from the browser. Here are some instructions for fixing [http://service1.symantec.com/SUPPORT/nip.nsf/46f26a2d6dafb0a788256bc7005c3fa3/b9b47ad7eddd343b88256c6b006a85a8?OpenDocument&src=bar_sch_nam Norton firewall products].
The most common cause for this is that your own computer (not your Moodle server) has a firewall that is stripping referrer information from the browser. Here are some instructions for fixing [http://service1.symantec.com/SUPPORT/nip.nsf/46f26a2d6dafb0a788256bc7005c3fa3/b9b47ad7eddd343b88256c6b006a85a8?OpenDocument&src=bar_sch_nam Norton firewall products].
38行目: 38行目:
Another possible cause of this problem is that sessions are not configured properly on the server. You can test this by calling the script <nowiki>http://yourserver/moodle/lib/session-test.php</nowiki>.
Another possible cause of this problem is that sessions are not configured properly on the server. You can test this by calling the script <nowiki>http://yourserver/moodle/lib/session-test.php</nowiki>.


==I keep getting this error: Failed opening required '/web/moodle/lib/setup.php'==
==次のエラーが発生します: Failed opening required '/web/moodle/lib/setup.php'==


In your ''config.php'', the setting that you use for the dirroot variable must be the complete path from the root of your server's hard drive.
In your ''config.php'', the setting that you use for the dirroot variable must be the complete path from the root of your server's hard drive.
44行目: 44行目:
Sometimes people only use the path from their home directory, or relative to the root of the web server directory.
Sometimes people only use the path from their home directory, or relative to the root of the web server directory.


==I login but the login link doesn't change. I am logged in and can navigate freely.==
==ログインしたときに、画面が変わりません。==


Make sure the URL in your <code>$CFG->wwwroot</code> setting is exactly the same as the one you are actually using to access the site.
Make sure the URL in your <code>$CFG->wwwroot</code> setting is exactly the same as the one you are actually using to access the site.


==My pages show fatal errors such as : call to undefined function: get_string()==
==マイ ページに次のようなエラーが表示されます: call to undefined function: get_string()==


If you see errors like:
If you see errors like:
58行目: 58行目:
Another reason could be that you have opened ''config.php'' in a program like Word to edit it, and saved it as a HTML web page, instead of a proper text file.
Another reason could be that you have opened ''config.php'' in a program like Word to edit it, and saved it as a HTML web page, instead of a proper text file.


==PHP - is it installed and what version do I have?==
==PHP - インストールされていますか? バージョンは?==


Make a new file on your web site called ''info.php'', containing the following text, and call it from your browser:
Make a new file on your web site called ''info.php'', containing the following text, and call it from your browser:
66行目: 66行目:
If nothing happens then you don't have PHP installed. See the installation docs for some information about where to download it for your computer.
If nothing happens then you don't have PHP installed. See the installation docs for some information about where to download it for your computer.


==Serious Error! Could not set up the site!==
==致命的なエラー! Moodleサイトをセットアップできません!==


Please refer to the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=32071 Serious Error! Could not set up the site!].
Please refer to the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=32071 Serious Error! Could not set up the site!].


==Uploaded files give "File not found"==
==ファイルをアップロードしたのに「ファイルが見つかりませんでした」と表示されます。==


For example: Not Found: The requested URL /moodle/file.php/2/myfile.jpg was not found on this server.
For example: Not Found: The requested URL /moodle/file.php/2/myfile.jpg was not found on this server.
84行目: 84行目:
To use this alternative method, you should change the ''slasharguments'' variable in the Operating System section of Administration >> Configuration >> [[admin/config|Variables]]. You should now be able to access your uploaded files.
To use this alternative method, you should change the ''slasharguments'' variable in the Operating System section of Administration >> Configuration >> [[admin/config|Variables]]. You should now be able to access your uploaded files.


==When I go to the admin page, I get told to make dirroot blank!==
==管理ページにアクセスしたときに、dirrootを空白にするように警告されます!==


If you see errors like this:
If you see errors like this:
98行目: 98行目:
  if (!empty($dirroot) and $dirroot != $CFG->dirroot) {
  if (!empty($dirroot) and $dirroot != $CFG->dirroot) {


==When trying to add a resource I receive error messages==
==リソースを追加するときにエラーメッセージが表示されます。==


Assuming you are using Apache, then it's quite likely that your setting in ''config.php'' for <code>$CFG->wwwroot</code> is different from the actual URL you are using to access the site. Also try turning off the ''secureforms'' variable in the security section of Administration >> Configuration >> [[admin/config|Variables]].
Assuming you are using Apache, then it's quite likely that your setting in ''config.php'' for <code>$CFG->wwwroot</code> is different from the actual URL you are using to access the site. Also try turning off the ''secureforms'' variable in the security section of Administration >> Configuration >> [[admin/config|Variables]].


==Why are all my pages blank?==
==なぜ、すべてのページが真っ白ですか?==


Check the dirroot variable in ''config.php''. You must use complete, absolute pathnames e.g.
Check the dirroot variable in ''config.php''. You must use complete, absolute pathnames e.g.
114行目: 114行目:
then reload the web page. Examine the output closely to see if MySQL is supported. If not look for a package you are missing.
then reload the web page. Examine the output closely to see if MySQL is supported. If not look for a package you are missing.


==Why can't I upload a new image into my profile?==
==なぜ、自分のプロフィールページに新しいイメージをアップロードできないのですか?==


If you don't see anything on your user profile pages to let you upload user images then it's usually because GD is not enabled on your server. GD is a library that allows image processing.
If you don't see anything on your user profile pages to let you upload user images then it's usually because GD is not enabled on your server. GD is a library that allows image processing.
127行目: 127行目:
Please see the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=44271 Profile pictures] for additional information.
Please see the Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=44271 Profile pictures] for additional information.


==Why do I keep getting error messages about "headers already sent"?==
==なぜ、「headers already sent」というエラーが表示され続けるのですか?==


If you see errors like this:
If you see errors like this:
135行目: 135行目:
you have blank lines or spaces after the final <code>?></code> in your ''config.php'' file. Sometimes text editors add these - for example Notepad on Windows - so you may have to try a different text editor to remove these spaces or blank lines completely.
you have blank lines or spaces after the final <code>?></code> in your ''config.php'' file. Sometimes text editors add these - for example Notepad on Windows - so you may have to try a different text editor to remove these spaces or blank lines completely.


== Why doesn't my Moodle site display the time and date correctly? ==
== なぜ、Moodleサイトが正確に時間と日付を表示しないのですか? ==


Each language requires a specific language code (called a '''locale''' code) to allow dates to be displayed correctly. The language packs contain default standard codes, but sometimes these don't work on Windows servers.
Each language requires a specific language code (called a '''locale''' code) to allow dates to be displayed correctly. The language packs contain default standard codes, but sometimes these don't work on Windows servers.

2006年7月6日 (木) 16:28時点における版

翻訳中です。

アポストロフィー(')またはクオート(")を追加したテキストは、エラーを生じるかスラッシュが追加されます。

アポストロフィーによって生じる問題は、「magic quotes」の設定ミスが原因しています。 Moodleでは次の設定を必要とします ( 通常デフォルトです ):

magic_quotes_gpc = On
magic_quotes_runtime = Off

詳細は、Moodleのインストールをご覧ください。

投稿内容を記載したメールがフォーラムより送信されません。

Moodleのフォーラム、課題より自動的にメールを送信させるには、cronを正しく設定する必要があります。同じプロセスで、登録未承認ユーザの削除や古い学生の登録抹消等の、多くのクリーンアップタスクを実行します。

基本的に、スクリプトhttp://yoursite/admin/cron.phpを定期的に呼ぶ設定をする必要があります。 Moodleのインストールのcronの設定をご覧ください。

ヒント: Moodleの詳細設定ページで、デフォルト設定の使用をお試しください。また、smtphostを空白のままにしてください。この設定は、ほとんどのユーザの条件を満たしています。

データベースの接続エラーが発生します。

If you get errors like "database connection failed" or "could not connect to the database you specified", here are some possible reasons and some possible solutions.

  1. Your database server isn't installed or running. To check this for MySQL try typing the following command line telnet database_host_name 3306. You should get a cryptic response which includes the version number of the MySQL server.
  2. You don't have the PHP mysql or postgresql extensions installed (please refer to FAQ re. whether PHP is installed).
  3. You haven't created a database for Moodle and assigned a user with the correct privileges to access it. Or the database name, database user or database user password in your Moodle configuration file config.php are incorrect. Use phpMyAdmin to set up and check your MySQL installation.
  4. You are using MySQL version 4.1 or higher, whose default password hashing algorithm is incompatible with that available in PHP versions 4.x.x. See http://dev.mysql.com/doc/mysql/en/old-client.html for further information on how to deal with this.
  5. You are using Fedora core 3 or some other Linux system with SELinux installed and enabled. See the following URL for information on how to disable SELinux: http://fedora.redhat.com/projects/selinux/

ログインできません - ログイン画面から先に進みません

The most common cause for this is that your own computer (not your Moodle server) has a firewall that is stripping referrer information from the browser. Here are some instructions for fixing Norton firewall products.

The server admin can also fix this for everyone by changing the secureforms variable to 'No' in the security section of Administration >> Configuration >> Variables.

Another possible cause of this problem is that sessions are not configured properly on the server. You can test this by calling the script http://yourserver/moodle/lib/session-test.php.

次のエラーが発生します: Failed opening required '/web/moodle/lib/setup.php'

In your config.php, the setting that you use for the dirroot variable must be the complete path from the root of your server's hard drive.

Sometimes people only use the path from their home directory, or relative to the root of the web server directory.

ログインしたときに、画面が変わりません。

Make sure the URL in your $CFG->wwwroot setting is exactly the same as the one you are actually using to access the site.

マイ ページに次のようなエラーが表示されます: call to undefined function: get_string()

If you see errors like:

Parse error: parse error, unexpected T_VARIABLE in c:\program files\easyphp\www\moodle\config.php on line 94 Fatal error: Call to undefined function: get_string() in c:\program files\easyphp\www\moodle\mod\resource\lib.php on line 11

then it's likely you have left out a semi-colon or ending quote from a line in config.php (previous to line 94).

Another reason could be that you have opened config.php in a program like Word to edit it, and saved it as a HTML web page, instead of a proper text file.

PHP - インストールされていますか? バージョンは?

Make a new file on your web site called info.php, containing the following text, and call it from your browser:

<?PHP phpinfo() ?>

If nothing happens then you don't have PHP installed. See the installation docs for some information about where to download it for your computer.

致命的なエラー! Moodleサイトをセットアップできません!

Please refer to the Using Moodle forum discussion Serious Error! Could not set up the site!.

ファイルをアップロードしたのに「ファイルが見つかりませんでした」と表示されます。

For example: Not Found: The requested URL /moodle/file.php/2/myfile.jpg was not found on this server.

Your web server needs to be configured to allow the part of the URL after a script name to be passed directly to the script. This is usually enabled in Apache 1, but is usually disabled by default in Apache 2. To turn it on, add this line to your httpd.conf, or to a .htaccess file in your local directory (see Installing Moodle for more details):

AcceptPathInfo on

Note, this will ONLY work for Apache versions 2.x.

If you are not using Apache 2 and you still have this problem (unlikely) then you can switch Moodle to use an alternative method. The disadvantages are a slight loss of performance for your users and you won't be able to use relative links within HTML resources.

To use this alternative method, you should change the slasharguments variable in the Operating System section of Administration >> Configuration >> Variables. You should now be able to access your uploaded files.

管理ページにアクセスしたときに、dirrootを空白にするように警告されます!

If you see errors like this:

Please fix your settings in config.php: You have: $CFG->dirroot = "/home/users/fred/public_html/moodle"; but it should be: $CFG->dirroot = "";

then you have encountered a small bug that occurs on some servers. The problem is with the error-checking mechanism, not with your actual path. To fix it, find this line (line 66) in the file admin/index.php:

if ($dirroot != $CFG->dirroot) {

and change it to this:

if (!empty($dirroot) and $dirroot != $CFG->dirroot) {

リソースを追加するときにエラーメッセージが表示されます。

Assuming you are using Apache, then it's quite likely that your setting in config.php for $CFG->wwwroot is different from the actual URL you are using to access the site. Also try turning off the secureforms variable in the security section of Administration >> Configuration >> Variables.

なぜ、すべてのページが真っ白ですか?

Check the dirroot variable in config.php. You must use complete, absolute pathnames e.g.

$CFG->dirroot = "d:\inetpub\sites\www.yoursite.com\web\moodle";

Another reason might be that PHP has not been configured to support MySQL. This is common on Redhat and OpenBSD installations. In this case, an error is generated, but since error displays are often disabled by default, all that is seen on the browser is a blank screen. To determine if this is your problem, insert this as the second line in your config.php file

phpinfo();

then reload the web page. Examine the output closely to see if MySQL is supported. If not look for a package you are missing.

なぜ、自分のプロフィールページに新しいイメージをアップロードできないのですか?

If you don't see anything on your user profile pages to let you upload user images then it's usually because GD is not enabled on your server. GD is a library that allows image processing.

1. Make sure GD has been included in your PHP installation. You can check this by going into Administration >> Configuration >> Variables and looking for the gdversion setting. This setting is chosen automatically every time you visit that page. If it shows GD version 1 or version 2 then everything should be fine. Save that configuration page and go back to your user profile.

2. If Moodle thinks GD is not installed, then you will need to install it. On Windows this is usually a matter of "turning on" the module in PHP (see the installation instructions for help). On Unix you may need to re-compile PHP with arguments something like this:

./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-ttf --enable-gd-native-ttf --enable-magic-quotes --with-mysql --enable-sockets --enable-track-vars --enable-versioning --with-zlib

3. Remember to re-visit the Moodle configuration page after making any changes to PHP so it can pick up the correct version of GD.

Please see the Using Moodle forum discussion Profile pictures for additional information.

なぜ、「headers already sent」というエラーが表示され続けるのですか?

If you see errors like this:

Warning: Cannot add header information - headers already sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/lib/moodlelib.php on line 1322 Warning: Cannot add header information - headers already sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/lib/moodlelib.php on line 1323 Warning: Cannot add header information - headers already sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/login/index.php on line 54

you have blank lines or spaces after the final ?> in your config.php file. Sometimes text editors add these - for example Notepad on Windows - so you may have to try a different text editor to remove these spaces or blank lines completely.

なぜ、Moodleサイトが正確に時間と日付を表示しないのですか?

Each language requires a specific language code (called a locale code) to allow dates to be displayed correctly. The language packs contain default standard codes, but sometimes these don't work on Windows servers.

You can find the correct locale codes for Windows on these two pages: Language codes and Country/region codes (e.g. "esp_esp" for spanish)

These new locale codes can be entered on the Administration >> Configuration >> Variables page, where they override the ones in the currently chosen language pack.