Missing mbstring PHP extension when installing phpMyAdmin on Mac

user575228 picture user575228 · Jan 24, 2011 · Viewed 36.2k times · Source

PhpMyAdmin install errors

Having some issues with installing phpMyAdmin. I would like to resolve the following issue, but don't have a clue where to start (except maybe php.ini?).

Here's the error message.

The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.

And here's a related article I found on SO that was for Linux but didn't work on my Mac (OSX 10.6 with PHP updated, etc): PhpMyAdmin install errors

Answer

vehnae picture vehnae · Jan 24, 2011

Like the error message says, your PHP installation lacks the mbstring extension. The Apple-provided PHP 5.3.3 in my Snow Leopard seems to have it, but many distributions bundle the extensions separately. For instance, if you use PHP from macports you need to install the php5-mbstring -package with:

sudo port install php5-mbstring