Aisha Salman
Aisha Salman

Reputation: 776

phpMyAdmin - Error : The mbstring extension is missing

I'm getting this phpMyAdmin error:

****The mbstring extension is missing. Please check your PHP configuration.****

I've searched for this solution many times and implemented step by step but still getting the same error.A couple of days back, it was running fine and now don't know what happened.Please help!

Here are my php.ini settings:

; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
;extension_dir = "./"
; On windows:
extension_dir="C:\php\ext"


extension=php_bz2.dll
extension=php_curl.dll
extension=php_mbstring.dll
extension=php_exif.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
;extension=php_mssql.dll
extension=php_mbstring.dll
;extension=php_exif.dll      ; Must be after mbstring as it depends on it
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
;extension=php_oci8_11g.dll  ; Use with Oracle 11gR2 Instant Client

Upvotes: 1

Views: 10104

Answers (3)

Hi guys I had that problem, the solution is easy, only follow this.

  1. Stop the server and then install this php version.

    $ service apache2 stop

    $ sudo apt-get install php7.1 php7.1-common

  2. You must install this package for Laravel and the composer.

    $ sudo apt-get install php7.1-curl php7.1-xml php7.1-zip php7.1-gd php7.1-mysql php7.1-mbstring

  3. view the new version.

    $ php -v

    you can see that.

PHP 7.2.4–1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Apr 5 2018 08:53:57) ( NTS )

  1. now, you need remove php 7.0

    $ sudo apt-get purge php7.0 php7.0-common

  2. Now restart your server

    $ sudo shutdown -r now

  3. Now your server use PHP 7.2 and you can solution mbstring error.

    $ sudo a2enmod php7.2

    $ service apache2 restart

Upvotes: 0

Sameer
Sameer

Reputation: 726

Try this

sudo apt-get install phpmyadmin php-mbstring php-gettext

sudo service apache2 restart

Or

Check This Post

Upvotes: 2

Techiescorner
Techiescorner

Reputation: 811

Please try to put the complete path for the extension directory and it works.

extension_dir = "C:\php\ext"

Hope this will help.

Upvotes: 3

Related Questions