GNU/Linux >> Linux Esercitazione >  >> Linux

Installazione di php-mbstring mancante su RHEL 7 Linux

La php-mbstring fa parte dei pacchetti opzionali del server di Redhat. Se hai un abbonamento corrente, tutto ciò che devi fare è abilitare questo repository utilizzando:

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

e usa yum per installare php-mbstring . Nel caso in cui non si disponga di un abbonamento Redhat in corso, è possibile installare php-mbstring direttamente dal repository del progetto 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



Ora esegui semplicemente yum comando per installare 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!

Riavvia httpd :

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

Se hai già installato PHP sul tuo server, potresti ricevere un Transaction check error . In questo caso dobbiamo sostituire l'intero stack 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

Installa yum replace pacchetto:

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

e sostituisci l'intero stack PHP:

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

Linux
  1. Installazione Docker su RHEL 7 Linux

  2. Installazione di PIP lo strumento di packaging Python su RHEL 7 Linux

  3. Generazione di un file Kickstart su Redhat Linux

  4. Kali Linux su VirtualBox:una guida all'installazione passo passo

  5. Installa Linux Mint 12 su PC | Installazione pulita di Linux Mint 12 su PC

RHEL 6 – Guida all'installazione del server Red Hat Enterprise Linux passo dopo passo

Red Hat Enterprise Linux (RHEL) 8 passaggi di installazione con schermate

Come installare XAMPP in Linux

Come installare Miniconda in Linux

Come installare PostgreSQL 14 in RHEL 8 Linux

Come installare l'ultimo PHP 8.1 su RHEL Linux