Moodle 4.1+ server requirements

Last updated on March 9th, 2023 at 04:01 pm.

Moodle 4.1+ server requirements

The most basic needs of Moodle are : PHP, a database like MySQL, a Server such as Apache.

PHP requirements – PHP 7.4 and above

Database – Mariadb 10.4 and above

To check for server requirements and current status of your Moodle 4.1+, go to:

Site Administration > Server > Environment

The following is a sample from my localhost Moodle docker install based on the Bitnami Moodle docker image.

Server checks – Site Administration > Server > Environment

NameInformationReport



unicode
must be installed and enabled
databasemariadb /mysqlversion 10.4 is required and you are running 10.11.2.1.10.11.2.2204
php
version 7.4.0 is required and you are running 8.0.28
pcreunicode
should be installed and enabled for best results
php_extensioniconvmust be installed and enabled
php_extensionmbstringmust be installed and enabled
php_extensioncurlmust be installed and enabled
php_extensionopensslmust be installed and enabled
php_extensiontokenizershould be installed and enabled for best results
php_extensionsoapshould be installed and enabled for best results
php_extensionctypemust be installed and enabled
php_extensionzipmust be installed and enabled
php_extensionzlibmust be installed and enabled
php_extensiongdmust be installed and enabled
php_extensionsimplexmlmust be installed and enabled
php_extensionsplmust be installed and enabled
php_extensionpcremust be installed and enabled
php_extensiondommust be installed and enabled
php_extensionxmlmust be installed and enabled
php_extensionxmlreadermust be installed and enabled
php_extensionintlmust be installed and enabled
php_extensionjsonmust be installed and enabled
php_extensionhashmust be installed and enabled
php_extensionfileinfomust be installed and enabled
php_extensionsodiumshould be installed and enabled for best results
php_extension6exifshould be installed and enabled for best results
php_settingmemory_limitrecommended setting detected
php_settingfile_uploadsrecommended setting detected
php_settingopcache.enablerecommended setting detected

Summary of Moodle requirements for PHP extensions

You can check forcurrently installed modules on your system as so:

php --modules

You can install most modules by googling it’s name and finding out how to install it. Use the above system environment to find out what is missing , search for how to install it.

List of required PHP modules

  • iconv
  • mbstring
  • curl
  • openssl
  • tokenizer
  • soap
  • ctype
  • zip
  • zlib
  • gd
  • simplexml
  • spl
  • pcre
  • dom
  • xml
  • xmlreader
  • intl
  • json
  • hash
  • fileinfo
  • sodium
  • exif

Comment Here

Join this free course:

How to host multiple WordPress
websites on a VPS

Close me!