
The soap extension is recommended (required for web services).The xmlrpc extension is recommended (required for networking and web services).
The tokenizer extension is recommended. The openssl extension is recommended (required for networking and web services). The curl extension is required (required for networking and web services). Others will need to be installed or selected. iconv, ctype and tokenizer are now included in PHP by default). The following PHP extensions are required or recommended (some, e.g. Note that if you are using command-line (CLI) PHP for running cron (or anything else) it may be configured with a different php.ini file. The path of the php.ini file is a few lines down in the top section. Sometimes it is not obvious where the php.ini file is located or you may even find more than one. always_populate_raw_post_data should be changed to -1.įor more information about this bug, see: Finding the correct php.ini. To avoid the error messages above, please change the value following setting on your php.ini file: These errors are affecting installations running moodle on PHP 5.6 version and it's a PHP bug on the always_populate_raw_post_data setting the default value to 0. Line 115 of /admin/mnet/peers.php: call to mnet_get_public_key() Line 134 of /mnet/lib.php: call to debugging() Request for server name returned empty response Some users are experiencing $HTTP_RAW_POST_DATA related errors, when establishing connection between MNET servers or making AJAX web services requests. Check the and database section (for your chosen database) to make sure they match your server configuration. post_max_size and upload_max_filesize restrict the maximum file size that can be uploaded. Make sure the settings are appropriate for your server use. Check the error display/logging section. The temp folder must be defined and writeable by your webserver user. (DEPRECATED in PHP 5.3.0, and REMOVED as of PHP 7.0.0.) session.save_handler needs to be set to FILES. Large systems may need an even higher setting. memory_limit needs to be at least 96M (although some functions may not work if this low). If you change php.ini, don't forget to restart the server. For settings which use ON/OFF as their values, you can substitute 1 for ON and 0 for OFF if you prefer. Moodle 4.1 (LTS) requires PHP 7.4 to 8.1Ĭheck these settings in your php.ini or. Moodle 3.11 and 4.0 requires PHP 7.3 to 8.0. Moodle 3.4 and Moodle 3.5 require PHP 7.0 or PHP 7.1 or PHP 7.2. Moodle 3.1 and earlier does not support PHP 7.1 or later (this means that there is currently no combination of releases of Moodle and PHP that are still supported before Moodle 3.4). Moodle 3.0.1 and later support PHP 7, however. 8.2 Displaying phpinfo outside of Moodle. PHP 8.1 BENCHMARK CODE
I chose to use a php script from and make some code adjustments because it doesn’t run on PHP 8.1. The benchmarks I did are very simple, but represent what we use most of the time. MySQLi: New MYSQLI_REFRESH_REPLICA constant.Curl: File uploads from strings with CURLStringFile.FPM: Configurable child-process spawn rate.Hash functions accept algorithm-specific $options.Array unpacking support for string-keyed arrays.$_FILES: New full_path value for directory-uploads.Phar: Added OpenSSL-256 and OpenSSL-512 signature algorithms.Intl: New IntlDatePatternGenerator class.I have run benchmark PHP 8.1 vs PHP 8.0 which was released on November 25, 2021.