Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer - the requested PHP extension mbstring is missing from your system [closed]

I've recently tried to install package through Composer, but I have got an error the requested PHP extension mbstring is missing from your system. I removed semicolon from php.ini, but it still doesn't work. What should I do?

like image 282
Jozef Cipa Avatar asked Sep 09 '15 20:09

Jozef Cipa


People also ask

How do I check if PHP is Mbstring installed?

You can check it through phpinfo(). Search for the string "mbstring" in phpinfo page. If it is present means then mbstring is enabled or it is disabled.

What is Mbstring PHP extension?

Mbstring is an extension of php used to manage non-ASCII strings. Mbstring is used to convert strings to different encodings. Multibyte character encoding schemes are used to express more than 256 characters in the regular byte wise coding system.


2 Answers

sudo apt-get install php-mbstring  # if your are using php 7.1 sudo apt-get install php7.1-mbstring  # if your are using php 7.2 sudo apt-get install php7.2-mbstring  # if your are using php 7.4 sudo apt-get install php7.4-mbstring 
like image 186
Pranay Aryal Avatar answered Sep 28 '22 04:09

Pranay Aryal


  1. find your php.ini
  2. make sure the directive extension_dir=C:\path\to\server\php\ext is set and adjust the path (set your PHP extension dir)
  3. make sure the directive extension=php_mbstring.dll is set (uncommented)

If this doesn't work and the php_mbstring.dll file is missing, then the PHP installation of this stack is simply broken.

like image 28
Jens A. Koch Avatar answered Sep 28 '22 02:09

Jens A. Koch