I received this error after trying to set up LAMP following this tutorial and found myself getting the above error after trying to set up phpmyadmin.
Fatal error: Call to undefined function mb_detect_encoding() C:WebServerApachehtdocsphpmyadminlibrariesphp-gettextgettext.inc At line 177
I followed the advice here: PHP fatal error while trying to access phpmyadmin mb_detect_encoding and made these changes.
When I run phpinfo()
I see that support for MySQL and mb_string
is enabled like this:
There are easier ways than recompiling PHP. Just yum install the required mbstring library:
Example:How to install PHP mbstring on CentOS 6.2
Oh, don’t forget to restart apache afterward.
Also install the gd library.
Check this linkhttp://www.php.net/manual/en/mbstring.installation.php