Home php Error The mbstring extension is missing?

Error The mbstring extension is missing?




I have a LEMP server on my machine. When I try to install phpmyadmin on it, I get an error

The mbstring extension is missing. Please check your PHP

Although running the php -m command will output the mbstring module. In the config, everything is also connected. How can I fix this?

A little later I noticed that when displaying all modules, an error pops up:

PHP Warning: PHP Startup: Unable to load dynamic library ‘mbstring.so’ (tried: ./mbstring.so (./mbstring.so: cannot open shared object file: No such file or directory), ./mbstring .so.so (./mbstring.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

After a few hours of studying the documentation, I came to the conclusion that a lot of unnecessary extensions were installed. I reinstalled php and it worked

Answer 1, authority 100%

Make sure you have php-mbstring package installed. If not, install:

$ sudo apt-get install php-mbstring

To enable the mb_string extension:

$ sudo phpenmod mbstring

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions