Title rewritten to read: Fatal error: Call to undefined function mb_detect_encoding()
P粉055726146
2023-08-29 13:16:17
<p>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. </p>
<blockquote>
<p>Fatal error: Call to undefined function mb_detect_encoding()
C:WebServerApachehtdocsphpmyadminlibrariesphp-gettextgettext.inc
At line 177</p>
</blockquote>
<p>I followed the advice here: PHP fatal error while trying to access phpmyadmin mb_detect_encoding and made these changes. </p>
<p>When I run <code>phpinfo()</code> I see that support for MySQL and <code>mb_string</code> is enabled like this: </p>
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 link http://www.php.net/manual/en/mbstring.installation.php