可选的模块INTL未安装或已禁用

发布于 2025-02-11 04:12:50 字数 590 浏览 1 评论 0原文

我从WordPress网站健康中看到了此消息。如何安装缺失的模块?

WordPress托管团队维护了这些模块的列表 推荐并需要,在团队手册中/p>

警告可选模块INTL未安装或已安装 禁用

I am seeing this message from WordPress Site Health. How do I install the missing module?

The WordPress Hosting Team maintains a list of those modules, both
recommended and required, in the team handbook

Warning The optional module, intl, is not installed, or has been
disabled

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

手心的温暖 2025-02-18 04:12:50

根据 php手册此模块提供国际化功能。如果您的网站是多语言的,那么这对您来说很重要。

如果您使用的是为您维护PHP安装的Web主机,则需要与他们联系以安装模块。

如果您管理自己的Web主机,则可以按照这样的安装指南进行操作: https:// www.iteron.co.za/?page_id = 17204

用于基于Linux的服务器(假设您具有root访问)

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基于Windows的服务器

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

According to the PHP manual this module provides Internationalization Functions. If your site is multi-lingual then this will be important to you.

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

If you manage your own web host then you can follow an install guide like this one: https://www.iteron.co.za/?page_id=17204

For Linux-based Server (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 Server

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文