The mbstring extension is missing. Please check your PHP configuration [closed]

1

While trying to install what's missing sudo apt-get install phpmyadmin php-mbstring php-gettext , it says it's already installed

AndIalsoactivatedtheextension=php_mbstring.dllextension,whatcouldbemyproblem?

Extensions:

    
asked by anonymous 26.04.2017 / 04:12

2 answers

2

The extension=php_mbstring.dll would be windows on Ubuntu the correct would be:

extension=mbstring.so

Without the php_ prefix and the .so extension, note that using sudo apt-get install php-mbstring will only work for the PHP version you are using at the command line, if you have more than one PHP version, type php5 and php7 will have to switch first.

To install for PHP 7.0 you can try this command:

sudo apt-get install php7.0-mbstring

PHP 7.1:

sudo apt-get install php7.1-mbstring

In the latest Ubuntu I believe that even in PHP5 you must specify the version (or when using multiple versions):

sudo apt-get install php5.3-mbstring
sudo apt-get install php5.4-mbstring
sudo apt-get install php5.5-mbstring
sudo apt-get install php5.6-mbstring

After installing and editing php.ini you should restart Apache:

sudo service apache2 restart
    
26.04.2017 / 04:21
0

I was able to solve the problem by running the command apt-get remove --purge php7.0-* and then apt-get install php7.0 php7.0-fpm php7.0-mbstring .

    
26.04.2017 / 13:53