« FAQ d'installation » : différence entre les versions

De MoodleDocs
Aller à :navigation, rechercher
m (correction(s) de français)
(Suite de la traduction)
Ligne 14 : Ligne 14 :
Assurez-vous de fournir une description claire et compréhensible (jamais d'appel à l'aide ni d'invitation à l'urgence) ainsi qu'une description précise de ce que vous avez fait et de ce qu'il s'est passé. Copiez et collez tous les messages d'erreur en entier. Dire que rien ne s'affiche n'est pas normal, même une page blanche signifie quelque chose.
Assurez-vous de fournir une description claire et compréhensible (jamais d'appel à l'aide ni d'invitation à l'urgence) ainsi qu'une description précise de ce que vous avez fait et de ce qu'il s'est passé. Copiez et collez tous les messages d'erreur en entier. Dire que rien ne s'affiche n'est pas normal, même une page blanche signifie quelque chose.


[[#top|Top]]
[[#top|Haut]]


==PHP - est-il installé ? Quelle est sa version ?==
==PHP - est-il installé ? Quelle est sa version ?==
Ligne 26 : Ligne 26 :
Accédez au fichier depuis votre nagigateur internet. Si rien ne se passe, PHP n'est pas installé ou votre serveur web n'est pas configuré pour sa prise en charge. Consultez la documentation pour prendre connaissance de la procédure d'installation et de l'endroit où le télécharger pour votre ordinateur. Consultez la page [[phpinfo]] pour plus de détails sur le contenu de cette page.
Accédez au fichier depuis votre nagigateur internet. Si rien ne se passe, PHP n'est pas installé ou votre serveur web n'est pas configuré pour sa prise en charge. Consultez la documentation pour prendre connaissance de la procédure d'installation et de l'endroit où le télécharger pour votre ordinateur. Consultez la page [[phpinfo]] pour plus de détails sur le contenu de cette page.


[[#top|Top]]
[[#top|Haut]]


==Où les paramètres de configuration de Moodle sont-ils stockées ?==
==Où les paramètres de configuration de Moodle sont-ils stockées ?==
Les paramètres de configurations sont stockés dan le fichier config.php présent dans le dossier Moodle. Ce fichier est créé durant la phase d'installation. Si un problème survient et que le programme d'installation ne parvient pas à créer le fichier, essayez de le créer à la main en vous aidant de la documentation sur le [[Configuration file]].  
Les paramètres de configurations sont stockés dan le fichier config.php présent dans le dossier Moodle. Ce fichier est créé durant la phase d'installation. Si un problème survient et que le programme d'installation ne parvient pas à créer le fichier, essayez de le créer à la main en vous aidant de la documentation sur le [[Configuration file]].  
[[#top|Top]]
[[#top|Haut]]


==Télécharger les versions antérieures de Moodle==
==Télécharger les versions antérieures de Moodle==
Ligne 54 : Ligne 54 :
* '''En utilisant CVS''' : Vous pouvez également utiliser pour télécharger des versions antérieures ou des versions incrémentales des paquets génériques, par exemple Moodle 1.5.4. Consultez la [[CVS_for_Administrators | CVS documentation]].
* '''En utilisant CVS''' : Vous pouvez également utiliser pour télécharger des versions antérieures ou des versions incrémentales des paquets génériques, par exemple Moodle 1.5.4. Consultez la [[CVS_for_Administrators | CVS documentation]].


[[#top|Top]]
[[#top|Haut]]


==Comment activer et vérifier les journaux d'erreurs de PHP==
==Comment activer et vérifier les journaux d'erreurs de PHP==
Ligne 69 : Ligne 69 :
* Vérifiez votre pare-feu ou demandez à votre administrateur réseau. De nombreux serveurs de courriels sont verrouillés et vous aurez besoin de permissions pour envoyer des courriels par leur intermédiaire.
* Vérifiez votre pare-feu ou demandez à votre administrateur réseau. De nombreux serveurs de courriels sont verrouillés et vous aurez besoin de permissions pour envoyer des courriels par leur intermédiaire.


[[#top|Top]]
[[#top|Haut]]


==I can't log in - I just stay stuck on the login screen==
==Je ne peux pas me connecter, je reste coincer à l'écran de connexion==


This may also apply if you are seeing  “Your session has timed out. Please login again” and cannot log in.
Cela peut également s'appliquer si vous voyez « Votre session a expiré. Veuillez vous connecter à nouveau » et que vous ne pouvez pas vous connecter.


The following are possible causes and actions you can take (in no particular order):
Les points suivants sont autant de causes possibles et d'actions que vous pouvez tenter (sans aucun ordre particulier) :


* Check first that your main admin account (which will be a manual account) is also a problem. If your users are using an external authentication method (e.g. LDAP) that could be the problem. Isolate the fault and make sure it really is Moodle before going any further.
* Vérifiez d'abord sur le problème se produit également avec le compte de l'administrateur (qui est un compte créé manuellement). Si vos utilisateurs utilisent une méthode d'authentification externe (par ex. LDAP), cela peut être un problème. Isoler le problème est assurez-vous que Moodle a bien un problème avant d'aller plus loin.
* Sessions may not be configured properly on the server. You can test this by calling the script <nowiki>http://yourserver/moodle/lib/session-test.php</nowiki>.
* Les sessions peuvent ne pas être configurées correctement sur le serveur. Vous pouvez tester en utilisant le script <nowiki>http://yourserver/moodle/lib/session-test.php</nowiki>.
* If your server is on shared hosting check that you have not reached your disk space quota. This will prevent new sessions being created and nobody will be able to log in.  
* Si votre serveur est sur un hébergement mutualisé, vérifiez que vous n'avez pas atteint votre quota d'espace disque. Cela empêchera la création de nouvelles sessions et personne ne pourra se connecter.  
* Carefully check the permissions in your 'moodledata' area. The web server needs to be able to write to the 'sessions' subdirectory.
* Vérifiez avec attention les permissions de votre répertoire « moodledata ». Le serveur web doit pouvoir écrire dans le sous-répertoire « sessions ».
* Your own computer (not your Moodle server) may have 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].
* Votre propre ordinateur (et non votre serveur web Moodle) a peut-être un pare-feu qui interfère les informations qui proviennent du navigateur web. Voici quelques informations pour régler le problème avec  [http://service1.symantec.com/SUPPORT/nip.nsf/46f26a2d6dafb0a788256bc7005c3fa3/b9b47ad7eddd343b88256c6b006a85a8?OpenDocument&src=bar_sch_nam le pare-feu Norton].
* Try deleting the ''sessions'' folder in your moodledata directory (anybody currently logged in will be thrown out)
* Essayez de supprimer le répertoire ''sessions'' dans le répertoire moodledata (toutes les personnes connectées seront déconnectées).
* Try deleting cookies on your computer and/or try another browser or another client computer
* Essayez de supprimer les cookies sur votre ordinateur et/ou essayez un autre navigateur web ou un autre ordinateur
* In Site Administration > Server > Session handling, try setting a value for 'Cookie prefix'. You can also do this by setting <code>$CFG->sessioncookie='something';</code> in config.php. This is especially true if you are using multiple Moodles on the same browser.  
* Depuis Administration du site > Serveur > Gestion des sessions, essayez de paramétrer une valeur pour « Préfixe du cookie ». Vous pouvez aussi le paramétrer en ajoutant  <code>$CFG->sessioncookie='something';</code> dans votre fichier config.php. Ceci vaut surtout si vous utilisez plusieurs Moodle depuis un même navigateur web.  
* Make sure you have not removed or changed the [[Password salting|Password Salt]] value(s) in config.php. If passwords were created using a salt the correct salt must be in config.php for those passwords to continue to work. This feature was optional since Moodle 1.6 but has been applied by default since 1.9.7. This is easily done if you recreate config.php while performing an upgrade and forget to transfer the salt values.  
* Assurez-vous que vous n'avez pas supprimé ou modifié la/les valeur(s) du [[Password salting|salage de mot de passe]] dans config.php. Si les mots de passe ont été créés en utilisant un salage, la valeur correcte doit être renseignée dans le fichier config.php pour que ces mots de passe continuent de fonctionner. Cette fonctionnalité était optionnelle depuis Moodle 1.6 mais a été appliquée par défaut à partir de Moodle 1.9.7. Ceci est réalisable facilement si vous recréer le fichier config.php en effectuant une mise à jour et en oubliant de transférer la valeur du salage.  
* Do you have a .htaccess file in your Moodle folder (or its parent directories). If so, is there anything in there that might be causing trouble (strange redirects, access restrictions etc.)?
* Vous avez peut-être une fichier .htaccess dans votre dossier Moodle (ou dans l'un des dossiers parents). Dans ce cas, sa configuration pourrait créer des problèmes (redirections étranges, restrictions d'accès, etc.) ?
* Check the value of '''mnet_localhost_id''' in the mdl_config database table. It's normally 1 but must match the '''mnet_hostid''' field in your user records in the mdl_user table for the user to be recognised. It can sometimes get changed spuriously during upgrades or site migrations.  
* Vérifiez la valeur de '''mnet_localhost_id''' dans la table mdl_config de la base de données. Sa valeur est normalement sur 1 mais doit correspondre au champ '''mnet_hostid''' dans les enregistrement utilisateur de la table mdl_user pour qu'il soit reconnu. Il peut également changer sournoisement pendant une mise à jour ou une migration.
* You are using the correct username and password, yes?
* Vous utilisez bien les bons nom d'utilisateur et mot de password, n'est-ce pas ?


If you are still having problems, read the [[Can_not_log_in | Cannot log in]] page. You '''could''' also try changing the admin password. Proceed as if you have lost it see [[Administration FAQ]]
Si vous avez toujours des problèmes, lisez la page [[Can_not_log_in | Cannot log in]]. Vous '''pourriez''' aussi modifier le mot de passe de l'administrateur. Lisez la page [[Administration FAQ]] si vous l'avez perdu.


[[#top|Top]]
[[#top|Haut]]


==I log in but the login link doesn't change. I am logged in and can navigate freely.==
==I log in but the login link doesn't change. I am logged in and can navigate freely.==
Ligne 98 : Ligne 98 :
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.


[[#top|Top]]
[[#top|Haut]]
==Uploaded files give "File not found"==
==Uploaded files give "File not found"==


Ligne 126 : Ligne 126 :
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=145422 Troubleshooting Guide - 404 Errors] forum discussion.
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=145422 Troubleshooting Guide - 404 Errors] forum discussion.


[[#top|Top]]
[[#top|Haut]]


==Why are all my pages blank?==
==Why are all my pages blank?==
Ligne 146 : Ligne 146 :
then reload the web page. Examine the output closely to see if you chosen database is supported. If not, look for a package you are missing.
then reload the web page. Examine the output closely to see if you chosen database is supported. If not, look for a package you are missing.


[[#top|Top]]
[[#top|Haut]]


== Why is a particular page blank or incomplete? ==
== Why is a particular page blank or incomplete? ==
Ligne 173 : Ligne 173 :
*Fix fopen function
*Fix fopen function


[[#top|Top]]
[[#top|Haut]]


==Why can't I upload a new image into my profile?==
==Why can't I upload a new image into my profile?==
Ligne 207 : Ligne 207 :


These new locale codes can be entered on the Administration >> Configuration >> [[admin/config|Variables]] page, where they override the ones in the currently chosen language pack.
These new locale codes can be entered on the Administration >> Configuration >> [[admin/config|Variables]] page, where they override the ones in the currently chosen language pack.
[[#top|Top]]
[[#top|Haut]]
== How do I uninstall Moodle?==
== How do I uninstall Moodle?==


Ligne 230 : Ligne 230 :
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 | Moodle Migration]] page.
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 | Moodle Migration]] page.


[[#top|Top]]
[[#top|Haut]]
==Why does my new installation display correctly on the server, but when I view it from a different machine, styles and images are missing?==
==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:
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:
Ligne 237 : Ligne 237 :
*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 [https://docs.moodle.org/en/masquerading masquerading].
*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 [https://docs.moodle.org/en/masquerading masquerading].


[[#top|Top]]
[[#top|Haut]]
==Maximum upload file size - how to change it?==
==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_settings#Maximum_upload_size|course administration block]].
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_settings#Maximum_upload_size|course administration block]].
Ligne 250 : Ligne 250 :
*These forum posts: http://moodle.org/mod/forum/discuss.php?d=63840#287960 and http://moodle.org/mod/forum/discuss.php?d=93882#p414650
*These forum posts: http://moodle.org/mod/forum/discuss.php?d=63840#287960 and http://moodle.org/mod/forum/discuss.php?d=93882#p414650


[[#top|Top]]
[[#top|Haut]]


==Moodle claims PHP float handling is not compatible==
==Moodle claims PHP float handling is not compatible==
Ligne 278 : Ligne 278 :
If your Moodle site is version 1.5 or older then it's telling the truth.  
If your Moodle site is version 1.5 or older then it's telling the truth.  


[[#top|Top]]
[[#top|Haut]]


== How do I run multiple instances of Moodle without duplicating base code? ==
== How do I run multiple instances of Moodle without duplicating base code? ==

Version du 7 juillet 2012 à 19:25

Remarque : la traduction de cette page n'est pas terminée. N'hésitez pas à traduire tout ou partie de cette page ou à la compléter. Vous pouvez aussi utiliser la page de discussion pour vos recommandations et suggestions d'améliorations.


Information systèmes nécessaires pour tout problème d'installation abordé sur les forums

Lorsque vous posez des questions sur le forum dédié à l'assistance technique, essayez de fournir autant d'information que possible sur votre installation de Moodle. Vous pouvez par exemple vous aider des points suivants :

  • La version de PHP (par ex. PHP 5.3.2)
  • Le type du serveur de base de données et la version (par ex. MySQL 5.5.18)
  • Le navigateur internet utilisé et sa version (par ex. Internet Explorer 8)
  • La version de Moodle (par ex. 2.1)
  • Le type d'installation de Moodle (nouvelle/mise à jour)
  • Joindre le fichier Moodle config.php (prenez garde à retirer les mots de passe)
  • Joindre le rendu de Phpinfo

Assurez-vous de fournir une description claire et compréhensible (jamais d'appel à l'aide ni d'invitation à l'urgence) ainsi qu'une description précise de ce que vous avez fait et de ce qu'il s'est passé. Copiez et collez tous les messages d'erreur en entier. Dire que rien ne s'affiche n'est pas normal, même une page blanche signifie quelque chose.

Haut

PHP - est-il installé ? Quelle est sa version ?

Créez un nouveau fichier sur votre site et nommez le info.php. Il devra contenir le texte suivant :

<?PHP phpinfo() ?>

Accédez au fichier depuis votre nagigateur internet. Si rien ne se passe, PHP n'est pas installé ou votre serveur web n'est pas configuré pour sa prise en charge. Consultez la documentation pour prendre connaissance de la procédure d'installation et de l'endroit où le télécharger pour votre ordinateur. Consultez la page phpinfo pour plus de détails sur le contenu de cette page.

Haut

Où les paramètres de configuration de Moodle sont-ils stockées ?

Les paramètres de configurations sont stockés dan le fichier config.php présent dans le dossier Moodle. Ce fichier est créé durant la phase d'installation. Si un problème survient et que le programme d'installation ne parvient pas à créer le fichier, essayez de le créer à la main en vous aidant de la documentation sur le Configuration file. Haut

Télécharger les versions antérieures de Moodle

Il est possible de télécharger les versions antérieures de Moodle et qui ne sont plus disponible depuis Standard Moodle Download page. Les fichiers zip et tgz sont présent sur http://download.moodle.org/stable[version_number] (voir les liens ci-dessous).

Versions 2.0 Versions 1.9 Versions 1.8
Versions 1.7 Versions 1.6 Versions 1.5
Versions 1.4 Versions 1.3

Vous pouvez télécharger les versions précédentes en utilisant wget, lynx ou curl depuis cette URL : http://download.moodle.org/stable[version_number].

Par exemple: pour télécharger la version version 1.5 de Moodle, utilisez http://download.moodle.org/stable15. Vous verrez l'arborescence des fichiers s'afficher. Cliquez comme d'habitude sur la version que vous souhaitez télécharger, descendez en bas de la liste et cliquez sur le fichier « moodle-latest ».
  • Paquets pour Windows : Pour télécharger d'autres versions absentes de la page paquets Moodle pour Windows, utilisez cette adresse :
http://download.moodle.org/windows/MoodleWindowsInstaller-latest-[version_number].zip
  • Paquets pour Mac : Pour télécharger d'autres versions absentes de la page Mac pacakges, utilisez l'une de ces adresses (en fonction de l'architecture de votre processeur, Intel ou PPC) :
http://download.moodle.org/macosx/Moodle4Mac-Intel-[version_number].dmg
http://download.moodle.org/macosx/Moodle4Mac-PPC-[version_number}.dmg
  • En utilisant CVS : Vous pouvez également utiliser pour télécharger des versions antérieures ou des versions incrémentales des paquets génériques, par exemple Moodle 1.5.4. Consultez la CVS documentation.

Haut

Comment activer et vérifier les journaux d'erreurs de PHP

PHP peut être configuré pour enregistrer les erreur de nombreuses manières : deux d'entre elles impliquent l'utilisation du fichier php.ini et de la commande ini_set. Consultez la page PHP error logs.

Les email ne sont pas envoyés depuis mes forums

Vous devezconfigurer cron correctement si vous souhaitez que Moodle envoie automatiquement les courriels des forums, des devoirs, etc. Cron exécute également des tâches de maintenant comme la suppression des utilisateurs qui n'ont pas confirmé leur inscription, la désinscription des anciens étudiants, etc. Veuillez vous référer aux instructions sur cron.

Astuces :

  • Essayer d'utiliser les paramètres par défaut dans Réglages > Administration du site > Plugins > Output des messages > Courriel. Cela fonctionne dans la plupart des cas, sauf...
  • sur un serveur Windows où vous *devez* fournir l'adresse d'un serveur SMTP (Windows, à la différence d'Unix, ne dispose pas d'un serveur de messagerie intégré) dans la page de configuration ci-dessus.
  • Assurez-vous que allowuseremailcharset dans Réglages > Administration du site > Output des messages > Courriel est positionné sur « Non » à moins que vous ne vouliez comprendre ce que vous êtes en train de faire. Le positionner sur « Oui » peut entrainer des problèmes sur certaines versions de Moodle.
  • Vérifiez votre pare-feu ou demandez à votre administrateur réseau. De nombreux serveurs de courriels sont verrouillés et vous aurez besoin de permissions pour envoyer des courriels par leur intermédiaire.

Haut

Je ne peux pas me connecter, je reste coincer à l'écran de connexion

Cela peut également s'appliquer si vous voyez « Votre session a expiré. Veuillez vous connecter à nouveau » et que vous ne pouvez pas vous connecter.

Les points suivants sont autant de causes possibles et d'actions que vous pouvez tenter (sans aucun ordre particulier) :

  • Vérifiez d'abord sur le problème se produit également avec le compte de l'administrateur (qui est un compte créé manuellement). Si vos utilisateurs utilisent une méthode d'authentification externe (par ex. LDAP), cela peut être un problème. Isoler le problème est assurez-vous que Moodle a bien un problème avant d'aller plus loin.
  • Les sessions peuvent ne pas être configurées correctement sur le serveur. Vous pouvez tester en utilisant le script http://yourserver/moodle/lib/session-test.php.
  • Si votre serveur est sur un hébergement mutualisé, vérifiez que vous n'avez pas atteint votre quota d'espace disque. Cela empêchera la création de nouvelles sessions et personne ne pourra se connecter.
  • Vérifiez avec attention les permissions de votre répertoire « moodledata ». Le serveur web doit pouvoir écrire dans le sous-répertoire « sessions ».
  • Votre propre ordinateur (et non votre serveur web Moodle) a peut-être un pare-feu qui interfère les informations qui proviennent du navigateur web. Voici quelques informations pour régler le problème avec le pare-feu Norton.
  • Essayez de supprimer le répertoire sessions dans le répertoire moodledata (toutes les personnes connectées seront déconnectées).
  • Essayez de supprimer les cookies sur votre ordinateur et/ou essayez un autre navigateur web ou un autre ordinateur
  • Depuis Administration du site > Serveur > Gestion des sessions, essayez de paramétrer une valeur pour « Préfixe du cookie ». Vous pouvez aussi le paramétrer en ajoutant $CFG->sessioncookie='something'; dans votre fichier config.php. Ceci vaut surtout si vous utilisez plusieurs Moodle depuis un même navigateur web.
  • Assurez-vous que vous n'avez pas supprimé ou modifié la/les valeur(s) du salage de mot de passe dans config.php. Si les mots de passe ont été créés en utilisant un salage, la valeur correcte doit être renseignée dans le fichier config.php pour que ces mots de passe continuent de fonctionner. Cette fonctionnalité était optionnelle depuis Moodle 1.6 mais a été appliquée par défaut à partir de Moodle 1.9.7. Ceci est réalisable facilement si vous recréer le fichier config.php en effectuant une mise à jour et en oubliant de transférer la valeur du salage.
  • Vous avez peut-être une fichier .htaccess dans votre dossier Moodle (ou dans l'un des dossiers parents). Dans ce cas, sa configuration pourrait créer des problèmes (redirections étranges, restrictions d'accès, etc.) ?
  • Vérifiez la valeur de mnet_localhost_id dans la table mdl_config de la base de données. Sa valeur est normalement sur 1 mais doit correspondre au champ mnet_hostid dans les enregistrement utilisateur de la table mdl_user pour qu'il soit reconnu. Il peut également changer sournoisement pendant une mise à jour ou une migration.
  • Vous utilisez bien les bons nom d'utilisateur et mot de password, n'est-ce pas ?

Si vous avez toujours des problèmes, lisez la page Cannot log in. Vous pourriez aussi modifier le mot de passe de l'administrateur. Lisez la page Administration FAQ si vous l'avez perdu.

Haut

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.

Haut

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 in IIS 6 so you need to install a 3rd party IIS extension - see http://msdn.microsoft.com/en-us/library/ms972974.aspx.

IIS 7 now comes with the new URL Rewrite Module so a 3rd part extension is no longer required if you are running IIS 7. See http://learn.iis.net/page.aspx/734/url-rewrite-module for more details.

Once you've got URL rewriting working 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.

See also:

Haut

Why are all my pages blank?

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

$CFG->dirroot = "/var/www/moodle";

Another reason might be that PHP has not been configured to support MySQL (or whatever other database you are using). 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 database 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 you chosen database is supported. If not, look for a package you are missing.

Haut

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 switch on Debugging and 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. This is particularly common with "editing on".
  • 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

Haut

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 one of the following:

  • The permissions associated with the role you are using are preventing you from changing your profile picture.
  • GD is not installed, or is not enabled on your server. Make sure GD has been included in your PHP installation. You can check this by going to Site Administration > Server > PHP info 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.
  • GD is installed, but is in some way corrupt. For instance, see this discussion on empty lines or white spaces in config files.

GD is a library that allows image processing. For example, when all is well with your system, and you upload a new profile image, GD compresses the image and produces two thumbnails, one is 100x100 pixels, and the other is 35x35 pixels.

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

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.

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.

Haut

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.

Haut

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.

If the above does not provide a large enough figure you will need to make changes in your server settings. The usual place is in your php.ini file (go to Site administration > Server > PHPinfo and check a few lines down for its location). Look for settings upload_max_filesize and post_max_size, setting them both to your desired new value (e.g. '64MB'). You will need to restart the web server for these changes to take effect - e.g. on Linux, /etc/init.d/apache2 force-reload. Check your documentation or just reboot the server.

For more help see:

Haut

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.

When upgrading Moodle claims my database is not UTF8 when I'm sure it is

The symptom is that you are upgrading a post-1.6 Moodle to a newer version. The Environment check tells you that your database is not UTF8 and refuses to upgrade.

The database may not have it's character encoding set quite correctly. You can safely try this command on the database (mySQL):

   ALTER DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

(Change 'moodle' for the name of your database). You need to copy this into your MySQL client program that comes packaged with it.

Alternatively, you maybe adding a new clean install Moodle version to an existing web server and the UTF8 check error will not allow you to proceed. Use phpMyAdmin to help you. This web client is available as a plugin for Moodle or through your web hosting control panel. Using this program, create an empty database (for example moodle199) and make sure "MySQL connection collation" is a utf8 entry, such as utf8_general_ci. Go back to the Moodle installation screen with the check error, hit the previous button on the bottom and make sure the databae has the same name as your new empty database (for example moodle199).

If your Moodle site is version 1.5 or older then it's telling the truth.

Haut

How do I run multiple instances of Moodle without duplicating base code?

See this thread for a detailed explanation by Martin Langhoff.

What is FreeTDS and how can I use it in my installation?

FreeTDS is an open source implementation of the Tabular Data Stream protocol used by Microsoft SQL Server and Sybase for their databases. Unfortunately, Microsoft servers don't usually accept TDS 5.0 connections. FreeTDS allows your Unix/Linux applications to talk to these other database products and import and export data between different systems successfully.

How do I install a plugin?

Please see Installing plugins.

See also