GNU/Linux >> Tutoriels Linux >  >> Linux

Installation de php-mbstring manquant sur RHEL 7 Linux

Le php-mbstring fait partie des packages optionnels du serveur Redhat. Si vous avez un abonnement en cours, tout ce que vous avez à faire est d'activer ce référentiel en utilisant :

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

et utilisez yum pour installer php-mbstring . Si vous n'avez pas d'abonnement Redhat en cours, vous pouvez installer php-mbstring directement depuis le dépôt du projet 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



Maintenant, exécutez simplement yum commande pour installer 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!

Redémarrez httpd :

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

Si vous avez déjà installé PHP sur votre serveur, vous pouvez obtenir une Transaction check error . Dans ce cas, nous devons remplacer toute la pile 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

Installez le package de remplacement yum :

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

et remplacer toute la pile PHP :

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

Linux
  1. Installation de PIP l'outil de packaging Python sur RHEL 7 Linux

  2. Génération d'un fichier Kickstart sur Redhat Linux

  3. Kali Linux sur VirtualBox :un guide d'installation étape par étape

  4. Installer Linux Mint 12 sur PC | Installation propre de Linux Mint 12 sur PC

  5. Installation et examen de Linux Mint 18.3

RHEL 6 – Guide d'installation étape par étape de Red Hat Enterprise Linux Server

Étapes d'installation de Red Hat Enterprise Linux (RHEL) 8 avec captures d'écran

Comment installer XAMPP sous Linux

Comment installer Miniconda sous Linux

Comment installer PostgreSQL 14 dans RHEL 8 Linux

Comment installer le dernier PHP 8.1 sur RHEL Linux