インストールFAQ

提供:MoodleDocs
移動先:案内検索


再作成中です - Mitsuhiro Yoshida 2009年4月30日 (木) 10:47 (UTC)

Installation problems forum (インストール問題フォーラム) で必要とされるシステム情報

When posting questions to the Installation problems forum (インストール問題フォーラム) に質問を投稿する場合、あなたのMoodleシステムに関して、可能な限り基礎的な情報を提供するよう試みてください。あなたの投稿に下記テンプレートを使用してください:

  • サーバのオペレーティングシステム名 (可能であれば、バージョンも):
  • ブラウザ名 (可能であれば、バージョンも):
  • Moodleバージョン:
  • Moodleのインストールタイプは? (新規/アップグレード):
  • Moodleのconfig.phpを添付する?(Y/N):
  • phpinfoを添付する? (Y/N):

最後の2つに関して、あなたの投稿に以下の情報を添付してください:

  • あなたのブラウザに表示されたphp情報のコピー (この情報を取得するため、上記インストラクションを参考にするか、phpinfoをご覧ください)。
  • Moodle設定ファイルのコピー (データベースパスワード等の情報は、もちろん取り除いてください)。これは、メインMoodleディレクトリにあるconfig.phpという名称のファイルです。

これらを単一のテキストファイルに (vi、ノートバッド等を使用して) コピ&ペーストした後、あなたの投稿に添付してください。あなたのPCがWindowsボックスで、config.phpがノートパッドで崩れて (messy) いる場合 (改行がない、または違う場所にある)、ワークパッドをお試しください。

あなたのphpinfoを提供できない場合、あなたの投稿に下記情報をコピ&ペーストしてください:

  • ウェブサーバ (例 Apache/IIS) のバージョン:
  • データベースサーバ (例 MySQL、PostgreSQL) バージョン:
  • PHPバージョン:

ウェブホスティングアカウントにMoodleをインストールしている場合: この情報をあなたに伝えることのできる、サポートデスクに問い合わせてください。

セキュリティ警告: フォーラムに投稿する前に、ファイルを編集してパスワードを削除してください。

Top

PHP - インストールされていますか、またどのバージョンを私は使っていますか?

あなたのウェブサイトに、次のテキストを含んだ「info.php」という名称の新しいファイルを作成してください。ファイルを作成した後、あなたのブラウザからアクセスしてください:

<?PHP phpinfo() ?>

なにも起こらない場合、あなたがPHPをインストールしていないか、あなたのウェブサーバが.phpファイルを適切に処理するために設定されていない可能性があります。あなたのコンピュータにPHPをどこからダウンロードするか情報を取得するため、インストールドキュメントをご覧ください。このページのコンテンツに関する詳細は、phpinfoページをご覧ください。

Top

いつ、どこに、Moodleの設定は保存されますか?

Moodleの設定内容は、あなたのMoodleフォルダ内にあるconfig.phpファイルに保存されます。このファイルは、インストール処理中に作成されます。インストレーションがファイルを作成できない場合、あなたは設定ファイルドキュメントから、手動でファイルを作成することができます。手動によるファイルの編集は推奨できないことを留意してください。また、ファイルを手動で編集することにより、PHPの最後のクロージングタグ「?>」の下に不要な空白行が追加された場合、空白ページが表示されてしまいます。

Top

Moodleの前のリリースをダウンロードする

標準的なMoodleダウンロードページで探すことのできない、前のバージョンのMoodleをダウンロードすることができます。zipおよびtgz圧縮のファイルが、http://download.moodle.org/stable[version_number]にあります (詳細は、下記をご覧ください)。

バージョン2.0 バージョン1.9 バージョン1.8
バージョン1.7 バージョン1.6 バージョン1.5
1.4 Versions バージョン1.3

You can download previous releases by using wget, lynx or curl with this URL: http://download.moodle.org/stable[version_number].

For example: to download Moodle version 1.5, use http://download.moodle.org/stable15. You'll see a directory tree with the files displayed. Click on the one you want and download as normal - if you require the latest update of the version, scroll to the end of the list and download the "moodle-latest" file.
http://download.moodle.org/windows/MoodleWindowsInstaller-latest-[version_number].zip
  • Macパッケージ: To download other releases not found in Mac pacakges, use either of these URLs (depending on whether you need the Intel or PPC package):
http://download.moodle.org/macosx/Moodle4Mac-Intel-[version_number].dmg
http://download.moodle.org/macosx/Moodle4Mac-PPC-[version_number}.dmg
  • CVSを使用する: You can also use CVS to download older releases and incremental releases of the Moodle generic packages, e.g. Moodle 1.5.4 - see the CVS documentation.

Top

How to enable and check PHP error logs

PHP can be set up to log errors in a variety of different ways: two of these involve the use of the php.ini file and the ini_set command. See PHP error logs.

Email copies are not being sent from my forums

You must set up cron properly if you want Moodle to send out automatic email from forums, assignments etc. This same process also performs a number of clean-up tasks such as deleting old unconfirmed users, unenrolling old students and so on.

Basically, you need to set up a process to regularly call the script http://yoursite/admin/cron.php. Please refer to the cron instructions.

Tips:

  • Try the default settings in Administration > Server > Email. This generally works.
  • Make sure that allowuseremailcharset in Administration > Server > Email is set to No. Setting this to Yes can cause a problem in some versions of Moodle.

Top

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 Norton firewall products.

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.

If you are still having problems, read the Cannot log in page.

Top

I log in but the login link doesn't change. I am logged in and can navigate freely.

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

Top

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.

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.

For IIS you need to configure URL rewriting. This feature is not available from Microsoft, you need to install a 3rd party IIS extension - see http://msdn.microsoft.com/en-us/library/ms972974.aspx The recommended rewriting rule is

RewriteRule ^([^\?]+?\.php)(\/.+)$ $1\?file=$2 [QSA]

In theory you could try to use path info on IIS too, but it is not reliable, especially when using unicode file names.

If you are unable to configure your server properly then you can switch Moodle to use an alternative method. The major disadvantages is that you will not be able to use SCORM packages at all and some Adobe Flash and Java applets will not work either.

To use this alternative method, you should change the slasharguments variable. For moodle versions < 1.7, this is located in the Operating System section of Administration > Configuration > Variables. In later versions, this option is located in Site Administration > Server > HTTP. You should now be able to access your uploaded files.

Top

Why are all my pages blank?

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 enable PHP error displays see How to enable and check PHP error logs.

To determine if MySQL support 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.

Top

Why is a particular page blank or incomplete?

  • Check your web server log files!!
If a particular page is blank or incomplete (it doesn't display the footer), before you do anything else check your PHP error logs. Having established that PHP error logging is working, reproduce the error. Immediately check the error log file right at the end. Hopefully you will see a PHP error message at or very near the end of the file. This may solve your problem directly or makes it a lot easier to diagnose the problem in the Moodle forums.
  • If you are upgrading to a new version of Moodle, check that you do not have an old version of a non-standard block or module installed. Remove any such blocks or modules installed using the admin settings page and start the install process again. However, do also make sure that you have included all optional plugins that were required by your courses.
  • If you do not see any blocks listed, turn editing on and remove any blocks that you have added to that page and try reloading.
  • You may get this error immediately after selecting a language. At this stage of the installation process your Moodle computer may need to connect to the Internet and download a language pack, so check that the computer can access the Internet by using a browser. Check also that your PHP settings are as given in the Moodle Moodle Requirements page.

See also:

Installation hangs when setting-up database tables

Sometimes the installation will hang when setting up tables, where only half the page displayed in the browser and/or other outputs are removed. You may see truncated MySQL statements, or the “Scroll to continue” link is displayed but no “Continue” button is there.

See Unexpected installation halts for more about solutions that involve:

  • Checking for MySQL limits
  • Checking the .htaccess files
  • Code customizations issues
  • Checking memory limit
  • Upgrade incrementally
  • Fix fopen function

Top

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.

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 the GD library.

  • 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
  • On Windows this is usually a matter of "turning on" the extension in PHP by editing your php.ini file. To do this remove the semicolon for the php_gd2.dll extension - check that this file is actually present in your php extensions folder first (search your php.ini for extension_dir to determine where this points to on your hard disk). You should then have a line that looks like this:
extension=php_gd2.dll
Windows users should see the installation instructions for further help.

3. Remember to restart your webserver (if possible) and re-visit the Moodle configuration page after making any changes to PHP so it can pick up the correct version of GD.

See also: Using Moodle forum discussion Profile pictures for additional information.

Why doesn't my Moodle site display the time and date correctly?

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. Top

How do I uninstall Moodle?

Webhost/manual installation: If you have installed Moodle manually or have installed onto a webhost, follow these steps:

  • Delete the moodle database using this mysql command (or delete using your mysql client, e.g. PHPMyAdmin):
sql>DROP DATABASE moodle;
In the above example replace 'moodle' with the name of the moodle database you created when installing.
  • Delete the moodledata directory. If you, or your users, have uploaded materials into this directory take a copy of these before deleting this directory.
  • Delete the moodle directory itself. This will delete all of the moodle PHP script files.

XAMPP windows installation: If you have installed Moodle on windows through the XAMPP package, follow these steps:

  • Open cmd.exe and navigate to this directory within your installation directory:
server/mysql/bin
  • Run this command, replacing USERNAME with your database username (the default is "root") and DATABASE with your database name (the default is "moodle"):
mysqladmin.exe -u USERNAME -p drop DATABASE
  • Enter your database password at the prompt (the default is "" [blank]).
  • Enter "y" to confirm the database drop.
  • Delete the moodledata directory. If you, or your users, have uploaded materials into this directory take a copy of these before deleting this directory.
  • Delete the moodle directory itself. This will delete all of the moodle PHP script files.

How do I upgrade Moodle? Do I just overwrite the files?

Do not overwrite files, it may cause strange errors. You should read the Upgrade documentation before proceeding.

I obtain the message "Upgrade already running in this session, please wait!"

Most likely you refreshed the page before the completion message. If you are absolutely sure that there are no upgrade processes active (php and/or mysql), you can click on "!!!" and restart the upgrade.

Note: If you click on "'!!!" or try to restart the upgrade from another browser, there is a chance that your data in the database could be corrupted. If this happens, you will need to restore the database from sql dump and then restart the upgrade and wait - the process can take several hours on large sites.

Migrating Moodle to a new site or server

Migrating Moodle means that you have to move the current installation to a new server, and so may have to change IP addresses or DNS entries. To do this you will need to change the $CFG->wwwroot value in the config.php on the new server. You will also have to change any absolute links stored in the database backup file (before restoring the file on the new server) either using the admin/replace.php script, your text editor or another "search and replace" tool, e.g. sed. For more details see the Moodle Migration page.

Top

Why does my new installation display correctly on the server, but when I view it from a different machine, styles and images are missing?

In the installation instructions, one of the suggested settings for 'webroot' is 'localhost'. This is fine if all you want to do is some local testing of your new Moodle installation. If, however, you want to view your new installation from another machine on the same local area network, or view your site on the internet, you will have to change this setting:

  • For local testing, 'localhost' is fine for the webroot ($CFG->wwwroot in config.php).
  • If you want to test your site from other machines on the same local area network (LAN), then you will have to use the private ip address of the serving machine, (e.g. 192.168.1.2/moodle) or the network name of the serving computer (e.g. network_name_of_serving_machine/moodle) as the web root. Depending on your LAN setup, it may be better to use the network name of the computer rather than its (private) ip address, because the ip address can and will change from time to time. If you don't want to use the network name, then you will have to speak to your network administrator and have them assign a permanent ip address to the serving machine.
  • Finally, if you want to test your new installation across the internet, you will have to use either a domain name or a permanent (public) ip address/moodle as your web root. To handle both types of access, see masquerading.

Top

Maximum upload file size - how to change it?

There are several places to change the maximum file upload size. The first place to check is the Administration block. Security -> Site Policies -> and look for "Maximum Uploaded File Size". This is the "maxbyte" variable found in older versions of Moodle (under Admin > Variables). Teachers may also set the maximum file size by the course administration block.

The second place to check are the server files. The php.ini file has a limit which will override any other setting. (Hint: remember to restart your server for changes to take effect). Actually, the file need only be reread, which, if you are using phpCGI, happens when you invoke php. For more help see:

Top

How do I install Moodle on Windows Vista?

See Installing Moodle on Windows Vista.

Moodle claims PHP float handling is not compatible

The symptom is that when you try to install or upgrade your Moodle, you get a message "Detected unexpected problem in handling of PHP float numbers".

This forum thread and MDL-18253 have more information. In short, this problem should not happen, you can help us by telling posting information about exactly which version of PHP, and OS you are using. That may let us find a way to work around this problem.

You may be able to solve this issue by installing a more recent PHP versions. If you compile PHP yourself from source, changing the compilation options may help. However, since we don't understand the cause, we don't really know. If you do find a solution that works for you, please do tell us about it.

Update: we have a guess that the problem may be the 'precision' setting in your php.ini file. In a default PHP install this is set of 14. On at least one server that exhibited this problem it had been changed to a smaller value. So, if you see this problem, please try adding

ini_set('precision', 14);

to your config.php file, and report your success in MDL-18253.

Top


■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■

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

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

magic_quotes_gpc = On
magic_quotes_runtime = Off

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

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

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

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

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

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

「database connection failed」または「could not connect to the database you specified」というエラーが発生した場合、考え得る理由と解決策は下記のとおりです。

  1. あなたのデータベースサーバはインストールされていないか、稼動していません。このことをMySQLでチェックするには、次のコマンドを実行してください「 telnet database_host_name 3306 」。 MySQLサーバのバージョンを含んだメッセージが表示されます。
  2. mysqlまたはpostgresqlのPHP拡張モジュールがインストールされていません (FAQの「PHP - インストールされていますか? バージョンは?」をご覧ください)。
  3. Moodle用のデータベースを作成していないか、適切な権限を持ったユーザをデータベースに割り当てていません。または、データベース名、データベースユーザ、データベースパスワードを記述したMoodle設定ファイル「config.php」が正しくありません。MySQLのインストールをチェックおよび設定を行うには、phpMyAdminの使用をお勧めします。
  4. あなたは、PHP バージョン 4.x.x のパスワードハッシングアルゴリズムと互換性がない、MySQLバージョン4.1またはそれ以降のバージョンを使用しています。詳細情報および対応方法は、http://dev.mysql.com/doc/mysql/en/old-client.html をご覧ください。
  5. あなたは、SELinuxがインストールされているFedora core3または他のLinuxシステムを使用しています。SELinuxを無効にするには、次のページをご覧ください: http://fedora.redhat.com/projects/selinux/

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

多くは、あなたのコンピュータ (Moodleサーバではなく) がリファラ情報を取り除くファイアーウォールを使用している場合に起こります。 Norton firewall製品をMoodleが動作するように設定変更する場合の説明はこちらをご覧ください。

サーバの管理者は、管理 >> 設定 >> 詳細設定にある「secureforms」を「No」にすることで、すべてのユーザのためにこの問題を解消することができます。

別の可能性として、サーバにおいてセッションに関する設定が正しく行われていないことがあげられます。http://yourserver/moodle/lib/session-test.php を実行することで、セッションの設定をテストすることができます。

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

config.phpのdirroot変数には、サーバのハードディスクのルートからの絶対パスを設定してください。

時々、ホームディレクトリからのパスや、ウェブサーバディレクトリのルートへの相対パスを書き込む人がいます。

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

$CFG->wwwrootのURI (URL) 設定が、サイトにアクセスするURLと同じであるかを確認してください。

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

下記のようなエラーが表示される場合は:

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

config.php (94行目より前) で、セミコロンまたは閉じクオートが抜けている可能性があります。

その他の原因として、config.phpをWordのようなプログラムで開いて編集した後に、テキストファイルとして保存せずに、 HTMLページとして保存している可能性が考えられます。

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

ウェブサイトに下記の内容を含むinfo.phpというファイルを作成した後、ブラウザでアクセスしてください:

<?PHP phpinfo() ?>

何も起きない場合は、PHPがインストールされていません。PHPのダウンロード情報に関して、インストールマニュアルをご覧ください。

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

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

アップロードしたファイルへアクセスまたは閲覧するときに、いつも「File not Found」というメッセージが表示されます。

例えば: Not Found: The requested URL /moodle/file.php/2/myfile.jpg was not found on this server. と表示される場合。

スクリプト以下のURLが、直接スクリプトへ渡されるようにウェブサーバを設定する必要があります。 Apache 1では通常この設定がなされていますが、Apache 2では設定されていません。この設定を行うには、httpd.confまたローカルディレクトリの.htaccessファイルに下記の行を追加してください (詳細はMoodleのインストールをご覧ください):

AcceptPathInfo on

注意: この設定はApache versions 2.xのみに有効です。

Apache 2を使用せずに、この問題が発生する場合は別の方法を使用するためにMoodleを設定変更することができます。この方法を使用する上でのデメリットは、パフォーマンスが若干落ちることおよびHTMLリソースにおいて相対リンクを使用できないことです。

この代替的な方法を使用する場合は: 管理者でログインして、管理 >> 設定 >> 詳細設定のオペレーティングシステムセクションで「slasharguments」を変更してください。これで、アップロードしたファイルへアクセスできるようになります。

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

下記のようなエラーが表示される場合は:

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

いくつかのサーバで発生する小さなバグだと思われます。実際のパスではなく、エラーチェックメカニズムにエラーの原因があります。これを修正するには、admin/index.phpで下記の行 (66行目) を見つけて:

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

次のように変更してください:

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

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

あなたがApacheを使用しているのでしたら、恐らく「config.php」の設定 $CFG->wwwroot が、サイトにアクセスするための実際のURL (URI) と異なっていると思われます。また、管理 >> 設定 >> 詳細設定の「secureforms」変数を「No」に変更することもお試しください。

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

config.phpにあるdirroot変数の内容を確認してください。dirrootには絶対パスを使用する必要があります。例:

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

もう一つ考えられる原因として、PHPがMySQLをサポートするように設定されていないことがあります。これは、RedhatおよびOpenBSDのインストールで一般的に考えられます。この場合、エラーメッセージは生成されますが、デフォルトではエラーメッセージの表示が無効にされています。このため、ブラウザには真っ白なページが表示されます。この問題を解決するには、あなたの「config.php」ファイルの2行目に下記の行を追加してください。

phpinfo();

そして、ブラウザに表示されているウェブページをリロード (更新) してください。MySQLがサポートされているか、表示される情報を詳細に調査してください。MySQLがサポートされていない場合、インストールされていないパッケージを探してください。

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

アップロードしたイメージがユーザプロフィールページに全く表示されない場合、あなたのサーバでGDが有効にされていないことが考えられます。GDは、イメージを処理するためのライブラリです。

1. インストールされているPHPにGDが含まれているか確認してください。管理 >> 設定 >> 詳細設定で、どのバージョンのGDが含まれているか確認することができます。この設定は、あなたが詳細設定ページにアクセスするたびに、自動的に選択されます。GDバージョン1または2が表示された場合、正常に動作します。詳細設定ページを保存して、あなたのユーザプロフィールページに移動してください。

2. GDがインストールされていないとMoodleが判断した場合、GDをインストールする必要があります。Windowsでは、通常PHPのモジュールを有効にするだけでインストールされた状態になります (詳細はApache、MySQLおよびPHPのインストールをご覧ください)。Unixでは、下記のようなコマンドでPHPを再コンパイルする必要があります:

./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. PHPを変更した場合、Moodleが正確なGDバージョンを判断するよう、忘れずにMoodle詳細設定ページにアクセスしてください。

追加情報として、Using MoodleフォーラムのProfile picturesディスカッションをご覧ください。

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

下記のようなエラーが表示される場合は:

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

config.phpの最後の?>の後に空白行またはスペースがあります。いくつかのテキストエディタ (例えばWindowsのワードパッド) は、空白行やスペースを追加することがありますので、空白行やスペースを完全に取り去るために他のテキストエディタをお使いください。

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

各言語は、日付を正しく表示するために、特別の言語コード (ロケール'と呼ばれます) を必要とします。各言語パックには、デフォルトで標準的なコードが含まれていますが、Windowsサーバでは正常に動作しない場合もあります。

Windowsのための正しいロケールは、次の2つのページを参考にしてください: Language codes および Country/region コード (例. 日本語「Japanese_Japan.932」)

新しいロケールは、管理 >> 設定 >> 詳細設定 ページで追加することができます。ここで設定した内容は、現在選択している言語パックのロケールを上書きします。

関連情報