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

From MoodleDocs
(stub, category)
 
m (added link to spanish translation of page)
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{stub}}
{{Environment}}
==Windows==
To enable iconv in Windows package installations of Moodle:
 
#Open the ''php.ini'' file found in the ''moodle/apache/bin'' folder
#Find the line: <code>;extension=php_iconv.dll</code>
#Remove the <code>;</code> at the beginning of the line
#Restart apache for the change to take effect.
 
    Note: The iconv module is now part of PHP as of PHP version 5 so
    the php_iconv.dll file is not needed anymore. It is no longer
    included as an extension in the php.ini-recommended file in the PHP
    Windows binaries package and you do not need to enable the extension
    in your php.ini file. In other words, you do not have to enable the
    '''extension=php_iconv.dll''' line in your php.ini file.
    See http://www.php.net/manual/en/iconv.installation.php for details.
 
==Ubuntu Linux==
If you installed your PHP using the Ubuntu repositories (apt-get), then you should have iconv installed by default. If you compiled PHP from source then you will need to recompile with iconv support.
 
==Other OS==
''This page needs to be enhanced by adding corresponding instructions for other kinds of Moodle installations.''


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

Latest revision as of 00:55, 5 January 2015

Windows

To enable iconv in Windows package installations of Moodle:

  1. Open the php.ini file found in the moodle/apache/bin folder
  2. Find the line: ;extension=php_iconv.dll
  3. Remove the ; at the beginning of the line
  4. Restart apache for the change to take effect.
   Note: The iconv module is now part of PHP as of PHP version 5 so 
   the php_iconv.dll file is not needed anymore. It is no longer 
   included as an extension in the php.ini-recommended file in the PHP 
   Windows binaries package and you do not need to enable the extension 
   in your php.ini file. In other words, you do not have to enable the 
   extension=php_iconv.dll line in your php.ini file.
   See http://www.php.net/manual/en/iconv.installation.php for details.

Ubuntu Linux

If you installed your PHP using the Ubuntu repositories (apt-get), then you should have iconv installed by default. If you compiled PHP from source then you will need to recompile with iconv support.

Other OS

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