search

Home  >  Q&A  >  body text

Optional module intl is not installed or is disabled

I saw this message from WordPress Site Health. How to install missing modules?

The WordPress hosting team maintains a list of these modules, Recommended and required content in the Team Handbook

Warning optional module intl is not installed or is already installed disabled


P粉262073176P粉262073176410 days ago884

reply all(1)I'll reply

  • P粉455093123

    P粉4550931232023-11-01 00:15:35

    According to PHP ManualThis module provides internationalization functions. This is important for you if your website is multilingual.

    If you are using a web host that maintains your PHP installation for you, then you will need to contact them to install this module.

    If you manage your own web host, you can follow the installation guide below: https://www.iteron.co.za/?page_id=17204

    For Linux based servers (assuming you have root access)

    Make sure the php_intl.so file exists within your php extensions directory, find the extensions directory by:
        using phpinfo()
        running this command: php -r "echo ini_get('extension_dir');"
        (note: both options gets the extension_dir right from the PHP runtime configuration)
    
    If the file exists:
        search for the config file (php.ini, usually /etc/php.ini) and open it
        Make sure the line “extension=php_intl.so” is existing and not commented
        Restart the web server (usually sudo service httpd restart)
        Check if the extension is enabled using phpinfo()
    If the file doesn’t exist
        Check your php version by running the “php -v” command
        For PHP 5 install the php-intl package using your package manager – package managers and commands
            Most common: apt-get install php-intl (for ubuntu-based linux) or yum install php-intl (for CentOS)
        For PHP 7, install the php7.x-intl (depending on your php version)
        Repeat the steps for the case in which the file exists

    For Windows based servers

    Make sure the php_intl.dll file exists within your php extensions directory
        for separately installed PHP: C:\path\to\php\ext\
        for xampp: C:\path\to\xampp\php\ext
        (note: your drive letter might be different)
    If the file exists:
        search for the config file (php.ini, usually in the same folder as the php executable) and open it
        Make sure the line “extension=php_intl.dll” is existing and not commented
        Restart the web server (usually apache)
        Check if the extension is enabled using phpinfo()
    If the file doesn’t exist:
        Check your php version by running the “php -v” command
        Download the PHP version that corresponds to yours from the PHP Downloads Page (TS/NTS, x86/x64)
            To find thread safety for php, run: php -i | findstr “Thread” , source & more info.
        Search for the php_intl.dll file in the ext folder in that version and copy it in your php\ext folder
        Repeat the steps for the case in which the file exists

    reply
    0
  • Cancelreply