GNU/Linux >> Linux の 問題 >  >> Linux

RHEL7Linuxへの不足しているphp-mbstringのインストール

php-mbstring Redhatのサーバーオプションパッケージの一部です。現在のサブスクリプションがある場合は、次を使用してこのリポジトリを有効にするだけです。

[root@rhel7 ~]# subscription-manager repos --enable=rhel-7-server-optional-rpms

yumを使用してphp-mbstringをインストールします 。現在のRedhatサブスクリプションをお持ちでない場合は、php-mbstringをインストールできます。 IUSプロジェクトリポジトリから直接:

[root@rhel7 ~]# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/7/x86_64/ius-release-1.0-13.ius.el7.noarch.rpm
[root@rhel7 ~]# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
[root@rhel7 ~]# rpm -Uvh *release*.rpm



ここで、yumを実行するだけです。 php-mbstringをインストールするコマンド :

[root@rhel7 ~]# yum install php-mbstring
Installed:
    php56u-mbstring.x86_64 0:5.6.0-2.ius.el7                                                                                                                            

Dependency Installed:
  php56u-cli.x86_64 0:5.6.0-2.ius.el7      php56u-common.x86_64 0:5.6.0-2.ius.el7  
  php56u-pear.noarch 1:1.9.4-21.ius.el7  php56u-pecl-jsonc.x86_64 0:1.3.6-2.ius.el7 
  php56u-process.x86_64 0:5.6.0-2.ius.el7  php56u-xml.x86_64 0:5.6.0-2.ius.el7    

Complete!

httpdを再起動します :

[root@rhel7 html]# service httpd restart
Redirecting to /bin/systemctl restart  httpd.service

サーバーにPHPがすでにインストールされている場合は、Transaction check errorが発生する可能性があります。 。この場合、PHPスタック全体を置き換える必要があります:

[root@rhel7 ~]# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/7/x86_64/yum-plugin-replace-0.2.7-1.ius.el7.noarch.rpm

yum replaceパッケージをインストールします:

[root@rhel7 ~]# rpm -i yum-plugin-replace-0.2.7-1.ius.el7.noarch.rpm 

PHPスタック全体を置き換えます:

[root@rhel7 ~]# yum replace php --replace-with php56u

Linux
  1. RHEL7LinuxへのDockerのインストール

  2. RHEL7LinuxへのPythonパッケージツールのPIPのインストール

  3. Kali Linux on VirtualBox:ステップバイステップのインストールガイド

  1. RedhatLinuxでのキックスタートファイルの生成

  2. LinuxMint12をPCにインストールする| PCへのLinuxMint12のクリーンインストール

  3. LinuxMint18.3のインストールとレビュー

  1. VMwareWorkstationにRHEL8をインストールする方法

  2. RHEL8LinuxにMinecraftサーバーをインストールする方法

  3. Kali Linux メタパッケージ