The mbstring Extension is Missing. Please check your PHP Configuration

Asked

Viewed 7,773 times

2

Even trying to install what’s missing sudo apt-get install phpmyadmin php-mbstring php-gettext, he says it’s already installed

inserir a descrição da imagem aqui

And I’ve also activated the extension extension=php_mbstring.dll, what could be my problem ??

Extensions:

inserir a descrição da imagem aqui

  • 1

    It makes no sense, your php.ini is with the extensions . dll, that would be in windows, you must have done something very wrong. Note: Instead of image copy the snippets.

  • All right, tomorrow I’ll reinstall the phpmyadmin, I put image by which I think it gets easier viewing, thanks for the answer

  • 1

    The problem is the content of your phpmyadmin, this . dll thing is windows, you can reinstall phpmyadmin as much as you want the problem is another. I recommend you reinstall all php, or check this one by editing the correct php.ini.

  • If I’m not mistaken, PHP.ini is in /etc/PHP/7.0/php.ini. I’m on my cell phone now, so I’m not sure

  • Okay, I’ll wait then.

  • I managed to solve the problem, I have already asked the answer, thanks for the help anyway

Show 1 more comment

2 answers

4

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

extension=mbstring.so

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

To install to the PHP 7.0 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 should specify the version (or when it uses 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 must restart Apache:

sudo service apache2 restart
  • I just have php7 installed, and even switching to extension=mbstring.so, keeps returning the same error, but anyway I modified the question for you to see better.

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.

  • Basically removed everything and reinstalled everything again :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.