Phpmyadmin Error: the Mbstring Extension Is Missing. Please Check Your PHP Configuration

Phpmyadmin showing mbstring is missing

The cli and apache or nginx module have different config paths and, probably, different configs. Your module is enabled on cli but disabled to web.

You need to check your php.ini

If you try to do this (on terminal):

$ php -a
phpinfo();

In a point you can see the php.ini path.

Do the same thing on your www directory creating a phpinfo.php and calling the phpinfo() function and check the php.ini path.

Probably is not the same path and not the same configurations because we have a ini file to cli and to the apache/nginx module. So, you can fix it seeing which file is loading the modules and point to enable the module on web.

If is in different path, probably you'll need to enable or install the mbstring module on web version.

Considering that you're using php-fpm you can install mbstring module with the following command:

php-fpm install mbstring

Why mbstring extension is missing?

php.ini is a configuration file, not a script, so you cannot run code from it. When you attempt to fill it with PHP source code you break the file so PHP starts with its compiled-in defaults, which do not include mbstring.

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 30


Related Topics



Leave a reply



Submit