admin/environment/php extension/mbstring: Difference between revisions
Mary Cooch (talk | contribs) (copying from 3.2 docs) |
Tim Bahula 2 (talk | contribs) m (→top: clean up, typos fixed: apache → Apache (2)) |
||
Line 19: | Line 19: | ||
# Find the line: <code>;extension=php_mbstring.dll</code> | # Find the line: <code>;extension=php_mbstring.dll</code> | ||
# Remove the <code>;</code> at the beginning of the line | # Remove the <code>;</code> at the beginning of the line | ||
# Restart | # Restart Apache if necessary | ||
Note: This page needs to be enhanced by adding corresponding instructions for other kinds of Moodle installations. | Note: This page needs to be enhanced by adding corresponding instructions for other kinds of Moodle installations. |
Latest revision as of 16:21, 27 January 2022
If you want to have mbstring work on a LAMP server with yum (Fedora, Redhat, Centos) or apt-get (Ubuntu, Debian) then do this
1) As root from the CLI yum install php-mbstring or in the apt-get case apt-get install php-mbstring
For php7 on Centos do: "yum install php70-mbstring"
Then restart Apache
either /etc/init.d/httpd restart or possibly /etc/init.d/apache2 restart
Then check your server Environment again and the whinge from Moodle should have gone away and rewarded you with a nice tick or such-like.
To enable the mbstring library in Windows package installations of Moodle:
- Open the php.ini file found in the moodle/apache/bin folder or Windows folder
- Find the line:
;extension=php_mbstring.dll
- Remove the
;
at the beginning of the line - Restart Apache if necessary
Note: This page needs to be enhanced by adding corresponding instructions for other kinds of Moodle installations.
See also
- Using Moodle php_extension mbstring is recommended to be installed/enabled forum discussion