Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Upgrading to Moodle 2.0.

Upgrading to Moodle 2.0: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 23: Line 23:
*** ''register_globals'' '''MUST''' be OFF
*** ''register_globals'' '''MUST''' be OFF
*** ''safe_mode'' needs to 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.
*** ''memory_limit'' should be at least 128M. 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.
*** ''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_gpc'' should be OFF. Unlike earlier versions of Moodle.
*** ''magic_quotes_runtime'' needs to be OFF.
*** ''magic_quotes_runtime'' needs to be OFF.
*** ''file_uploads'' needs to be ON.
*** ''file_uploads'' needs to be ON.
Line 31: Line 31:
*** ''session.bug_compat_warn'' needs to be OFF.
*** ''session.bug_compat_warn'' needs to be OFF.
** PHP Extensions and libraries
** PHP Extensions and libraries
*** The mbstring extension is recommended for Moodle 1.6 or later.
*** The mbstring extension is recommended.
*** The iconv extension is recommended for Moodle 1.6 or later.
*** The iconv extension is recommended.
*** [http://www.libgd.org/ GD library] and the [http://www.freetype.org/ 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)
*** [http://www.libgd.org/ GD library] and the [http://www.freetype.org/ 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 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 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 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 curl extension is recommended.
*** The tokenizer extension is recommended for Moodle 1.8 or later.
*** The tokenizer extension is recommended.
*** The curl and openssl extensions are required for the Moodle network functionality (Moodle 1.8 or later).
*** The curl and openssl extensions are required for the Moodle network functionality.
*** The xmlrpc extension is required for the Moodle network functionality (Moodle 1.8 or later).
*** The xmlrpc extension is required for the Moodle network functionality.
*** The ctype extension is recommended for 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).
*** 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).

Revision as of 11:37, 13 February 2009

Template:Moodle 2.0

Table of Contents

Moodle 2.0 requires differnent system requirements to other versions,they new requirements are listed below.

Requirements

Moodle is designed for the LAMP setup; Linux, Apaches, MySQL and PHP. The requirements for Moodle are as follows. They may chage!!!

Hardware

  • Disk Space: 160MB min
  • Memory (RAM): 256 min, 1GB reccomnded, 50 users per 1GB RAM

Software

  • Web server software. Such as Apache or IIS.
  • PHP scripting language. The exact requirements for PHP in Moodle 2.0 are below.

PHP Configuration

  • Version: 5.2.8 or later, it will not supportany earlier version.
    • PHP Settings. Check these settings in your php.ini or .htaccess file (if you're using Apache). For settings which use ON/OFF as their values, you can substitute 1 for ON and 0 for OFF if you prefer.
      • register_globals MUST be OFF
      • safe_mode needs to be OFF.
      • memory_limit should be at least 128M. 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 OFF. Unlike earlier versions of Moodle.
      • 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.
    • PHP Extensions and libraries
      • The mbstring extension is recommended.
      • The iconv extension is recommended.
      • 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.
      • The tokenizer extension is recommended.
      • The curl and openssl extensions are required for the Moodle network functionality.
      • The xmlrpc extension is required for the Moodle network functionality.
      • 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).

Verify the upgrade (optional)

If you wish to confirm that the database definitions in the upgraded database match the definitions of a new, clean install (which they should) you might like to look at Verify Database Schema.

See also