首页 > 解决方案 > 在 RHEL 7.4 和 PHP 7.3 上安装 RPM php_mbstring | 调用未定义函数 mb_substr()

问题描述

我可以知道如何安装 php-mbstring。这是我的服务器版本:

操作系统:
NAME="Red Hat Enterprise Linux Server"
VERSION="7.4 (Maipo)"

PHP:
PHP 7.3.4 (cli) (built: Apr 2 2019 13:48:50) (NTS) 版权所有 (c) 1997-2018 The PHP Group Zend Engine v3.3.4, Copyright (c) 1998-2018 Zend Technologies

我被限制连接到互联网。安装 php 扩展的唯一方法是下载 rpm。以下是安装的php扩展:

php-gd-7.3.4-1.el7.remi.x86_64
php-7.3.4-1.el7.remi.x86_64
php-sqlsrv-5.6.1-2.el7.remi.7.3.x86_64
php-json-7.3 .4-1.el7.remi.x86_64
php-pdo-7.3.4-1.el7.remi.x86_64
php-cli-7.3.4-1.el7.remi.x86_64
php-pdo-dblib-7.3.4- 1.el7.remi.x86_64
php-xml-7.3.4-1.el7.remi.x86_64
php-common-7.3.4-1.el7.remi.x86_64
php-soap-7.3.4-1.el7.remi .x86_64
php-pecl-mcrypt-1.0.2-1.el7.remi.7.3.x86_64
php-pgsql-7.3.4-1.el7.remi.x86_64

请指出正确的方向以获取 php-mbstring 的安装程序。我的应用程序非常依赖此功能。PHP 5.XX 工作得很好,但我需要更新我的 PHP 版本。谢谢

标签: phprpmrhel7php-7.3

解决方案


您显然需要php-mbstring包。

请注意比

  • RHEL 7.4已过时且未维护,当前为7.7
  • PHP 7.3.4已过时且未维护,受到各种安全问题的影响,包括一个关键问题,当前是7.3.11

顺便说一句,您可以从在线存档下载php-mbstring-7.3.4-1.el7.remi.x86_64.rpm 。


推荐阅读