Home  >  Q&A  >  body text

Title rewritten to read: Fatal error: Call to undefined function mb_detect_encoding()

<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>
P粉055726146P粉055726146389 days ago486

reply all(2)I'll reply

  • P粉722409996

    P粉7224099962023-08-30 11:41:47

    There are easier ways than recompiling PHP. Just yum install the required mbstring library:

    Example:How to install PHP mbstring on CentOS 6.2< /a>

    yum --enablerepo=remi install php-mbstring

    Oh, don’t forget to restart apache afterward.

    reply
    0
  • P粉063862561

    P粉0638625612023-08-30 11:40:22

    Also install the gd library.

    Check this link http://www.php.net/manual/en/mbstring.installation.php< /p>

    reply
    0
  • Cancelreply