Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago. Improve this question
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?
mbstring
settings uncommented in php.ini
?
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
find your php.ini make sure the directive extension_dir=C:\path\to\server\php\ext is set and adjust the path (set your PHP extension dir) 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.
For php 7.1
sudo apt-get install php7.1-mbstring
Cheers!
I set the PHPRC variable and uncommented zend_extension=php_opcache.dll
in php.ini
and all works well.
Success story sharing
sudo apt-get install php5.6-mbstring
. Do a search withapt-cache search mbstring
to see which versions are available for your system.apt-get install php7.1-mbstring
works for meUnable to locate package php-mbstring
, try runningsudo apt-get update
first.apt-get install php7.2-mbstring