Hinweis: Sie sind auf den Seiten der Moodle 1.9 Dokumentation. Die Dokumentation der aktuellsten Moodle-Version finden Sie hier: PHP-Versionen für Moodle.

PHP-Versionen für Moodle

Aus MoodleDocs
Wechseln zu:Navigation, Suche

Baustelle.png Diese Seite ist noch nicht vollständig übersetzt.

Siehe en:PHP settings by Moodle version


Erforderliche PHP-Versionen

Moodle has different PHP requirements for different versions:

  • Moodle 2.0 will require PHP 5.2.8 or later.
  • Moodle 1.6 to 1.9 requires PHP 4.3.0 or later
  • Moodle 1.0 to 1.5 requires PHP 4.1.0 or later

PHP-Erweiterungen und PHP-Bibliotheken

  • GD Bibliothek und die FreeType 2 Bibliothek für Linux-/Unix-Installationen um dynamische Grafiken der Log-Dateien darstellen zu können.
  • mbstring - wird benötigt für Multi-Byte-Zeichenketten-Behandlung. (iconv ist auch Voraussetzung für Moodle 1.6)
  • Die MySQL-Erweiterung ist Voraussetzung, wenn man MySQL-Datenbanken einsetzen möchte. Beachten Sie: Bei manchen Linux-Distributionen (besonders Red Hat) ist es eine optionale Installation.
  • Die Pgsql-Erweiterung ist Voraussetzung, wenn man PostgreSQL-Datenbanken benutzen möchte.
  • Die Zlib-Erweiterung ist Voraussetzung für Zip-/Unzip-Funktionalität
  • Andere PHP-Erweiterungen sind möglicherweise Voraussetzungen für die optionale Unterstützung spezieller Moodle-Features, speziell externe Authentifikation und/oder Registrierung in den Kursen (z.B. LDAP Anbindung).
    • PHP Extensions and libraries
      • The mbstring extension is recommended for Moodle 1.6 or later.
      • The iconv extension is recommended for Moodle 1.6 or later.
      • GD library and the FreeType 2 library and extensions are needed to be able to look at the dynamic graphs that the logs pages make. (Freetype support is available as part of the GD extension for the 5.x versions of PHP)
      • The mysql extension is required if you are using the MySQL database. Note that in some Linux distributions (notably Red Hat) this is an optional installation.
      • The pgsql extension is required if you are using the PostgreSQL database.
      • The pdo and pdo_sqlite extensions are required for the (experimental) SQLite 3 database support.
      • The curl extension is recommended for Moodle 1.8 or later.
      • The tokenizer extension is recommended for Moodle 1.8 or later.
      • The curl and openssl extensions are required for the Moodle network functionality (Moodle 1.8 or later).
      • The xmlrpc extension is required for the Moodle network functionality (Moodle 1.8 or later).
      • The ctype extension is recommended for Moodle 1.8 or later.
      • Other PHP extensions may be required to support optional Moodle functionality, especially external authentication and/or enrolment (e.g. LDAP extension for LDAP authentication and the sockets extension for Chat server).


PHP-Konfiguration

Moodle braucht eine Menge an PHP-Einstellungen damit es richtig arbeitet. Bei den meisten Servern ist das bereits die Standard-Einstellung. Aber manche PHP-Server (bzw. manche PHP-Versionen) haben andere Einstellungen in der Konfigurationsdatei (gewöhnlich in der Datei php.ini). Anmerkung zu on/off, 0/1: For settings which use ON/OFF as their values, you can substitute 1 for ON and 0 for OFF if you prefer.

  magic_quotes_gpc = 1    (bevorzugt, aber nicht notwendig)
  magic_quotes_runtime = 0    (unbedingt notwendig)
  file_uploads = 1
  session.auto_start = 0
  session.bug_compat_warn = 0

register_globals MUST be OFF

      • safe_mode needs to be OFF.
      • memory_limit should be at least 16M (32M is recommended for Moodle 1.7 and 40M for Moodle 1.8 or later). Large sites may need more than 128M. PHP 5.2.x requires higher memory_limit values than previous versions of PHP. 64bit operating systems require even more memory.
      • session.save_handler needs to be set to FILES.
      • magic_quotes_gpc should be ON. (It will be recommended to turn it off in 2.0.)
      • magic_quotes_runtime needs to be OFF.
      • file_uploads needs to be ON.
      • session.auto_start needs to be OFF.
      • session.bug_compat_warn needs to be OFF.