Note: You are currently viewing documentation for Moodle 3.2. Up-to-date documentation for the latest stable version of Moodle is probably available here: admin/environment/php extension/mbstring.

admin/environment/php extension/mbstring: Difference between revisions

From MoodleDocs
m (category)
No edit summary
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
To install the mbstring library on Windows:
{{Environment}}
If you want to have mbstring work on a LAMP server with yum (Fedora, Redhat, Centos) or apt-get (Ubuntu, Debian) then  do this


# Open the php.ini file found in the moodle/apache/bin folder or Windows folder
1) As root from the CLI ''yum install php-mbstring'' or in the apt-get case ''apt-get install php-mbstring''
# Find the line: ;extension=php_mbstring.dll
 
# Remove the ; at the beginning of the line
for php7 on Centos do:  "yum install php70-mbstring"
# Restart apache if necessary.
 
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: <code>;extension=php_mbstring.dll</code>
# Remove the <code>;</code> 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 [http://moodle.org/mod/forum/discuss.php?d=39977 php_extension mbstring is recommended to be installed/enabled] forum discussion


[[Category:Environment|php extension]]
[[Category:Environment|php extension]]
[[es:admin/environment/php extension/mbstring]]
[[fr:admin/environment/php extension/mbstring]]

Latest revision as of 11:00, 11 May 2017

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:

  1. Open the php.ini file found in the moodle/apache/bin folder or Windows folder
  2. Find the line: ;extension=php_mbstring.dll
  3. Remove the ; at the beginning of the line
  4. Restart apache if necessary

Note: This page needs to be enhanced by adding corresponding instructions for other kinds of Moodle installations.

See also