Note: This documentation is for Moodle 2.7. For up-to-date documentation see admin/environment/php extension/mbstring.

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

From MoodleDocs
m (Update php-mbstring installation for Lamp server)
mNo edit summary
Line 3: Line 3:
1) As root from the CLI ''yum install php-mbstring'' or in the apt-get case ''apt-get install php-mbstring''
1) As root from the CLI ''yum install php-mbstring'' or in the apt-get case ''apt-get install php-mbstring''


The restart Apache
Then restart Apache


either ''/etc/init.d/httpd'' restart'' or possibly ''/etc/init.d/apache2 restart''
either ''/etc/init.d/httpd'' restart'' or possibly ''/etc/init.d/apache2 restart''

Revision as of 22:31, 27 April 2010

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

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