Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

admin/environment/php extension/mbstring: diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
mCap resum de modificació
 
(environment template)
 
(8 revisions intermèdies per 6 usuaris que no es mostren)
Línia 1: Línia 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


  1. Open the php.ini file found in the moodle/apache/bin folder or C:/Windows folder
1) As root from the CLI ''yum install php-mbstring'' or in the apt-get case ''apt-get install php-mbstring''
  2. Find the line: ;extension=php_mbstring.dll
 
  3. Remove the ; at the beginning of the line
Then restart Apache
  4. Restart apache if necessary.
 
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]]
 
[[fr:admin/environment/php extension/mbstring]]

Revisió de 09:30, 25 abr 2012

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