Skip to content
Advertisement

Composer Install – requires ext-mbstring

I am trying to do a composer install ..., but getting an error of requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. I am using Apache (Cpanel) and PHP 5.6.

Below are the ways I am trying to fix the error.

1: yum search mbstring

JavaScript

2: yum install ea-php56-php-mbstring.x86_64

JavaScript

It seems mbstring is installed but why I got an error when I try to composer install?

Another way (update PHP version in cPanel)

1: WHM – already set to 7.1

enter image description here

2: cPanel – already set to 7.1

enter image description here

but version in server still 5.6

enter image description here

Any suggestions to resolve require ext-mbstring error?

Advertisement

Answer

Installing rh can solve this issue yum install rh-php56-php-mbstring.x86_64

Please double check what you have in your server. Mine is rh-php56-php-mbstring.x86_64 not php-mbstring

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement