可選模組 intl 未安裝或已停用
P粉262073176
P粉262073176 2023-10-31 10:35:24
0
1
890

我看到了來自 WordPress 網站運行狀況的這則訊息。如何安裝缺少的模組?

WordPress 託管團隊維護著這些模組的列表, 團隊手冊中所推薦和要求的內容

警告選用模組 intl 未安裝或已安裝 已禁用


P粉262073176
P粉262073176

全部回覆(1)
P粉455093123

根據PHP手冊此模組提供國際化功能。如果您的網站是多語言的,那麼這對您來說很重要。

如果您使用的網站主機為您維護 PHP 安裝,那麼您將需要聯絡他們來安裝模組。

如果您管理自己的網站主機,則可以按照以下安裝指南進行操作: 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

對於基於 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
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板