{"id":166,"date":"2007-10-10T17:51:08","date_gmt":"2007-10-10T23:51:08","guid":{"rendered":"http:\/\/www.truk.com\/ramble\/2007\/10\/10\/how-to-install-the-mbstring-php-extension\/"},"modified":"2007-10-10T17:58:35","modified_gmt":"2007-10-10T23:58:35","slug":"how-to-install-the-mbstring-php-extension","status":"publish","type":"post","link":"http:\/\/www.truk.com\/ramble\/2007\/10\/10\/how-to-install-the-mbstring-php-extension\/","title":{"rendered":"How to Install the MBString PHP Extension"},"content":{"rendered":"<p>Sometimes, I just love working with Red Hat, PHP, and MySQL.<\/p>\n<p>I was setting up a new Linux server today, and I noticed the error in phpMyAdmin, a popular web-based application that uses PHP to allow a user to administer MySQL databases. I&#8217;ve been using phpMyAdmin for a long time, and the more recent versions of MySQL have been released with a Unicode character set (UTF-8), which is actually a good thing, since it can handle storing data from many more languages and language sets. However, phpMyAdmin was barking about a problem with my default Apache+PHP setup on the Red Hat Enterprise Linux 4 server:<\/p>\n<p><em>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.<\/em><\/p>\n<p>I did some research in what was involved to enable the mbstring PHP extension, and it was looking like so much work I was just going to leave it, but finally, I turned up the easy answer: Simply install the php-mbstring package. With an up2date subscription, it is easy:<\/p>\n<p><strong>up2date -i php-mbstring<\/strong><\/p>\n<p>Finally, bounce Apache, and the error message went away. Wow, easier than I thought&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes, I just love working with Red Hat, PHP, and MySQL. I was setting up a new Linux server today, and I noticed the error in phpMyAdmin, a popular web-based application that uses PHP to allow a user to administer MySQL databases. I&#8217;ve been using phpMyAdmin for a long time, and the more recent versions [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-166","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.truk.com\/ramble\/wp-json\/wp\/v2\/posts\/166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.truk.com\/ramble\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.truk.com\/ramble\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.truk.com\/ramble\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.truk.com\/ramble\/wp-json\/wp\/v2\/comments?post=166"}],"version-history":[{"count":0,"href":"http:\/\/www.truk.com\/ramble\/wp-json\/wp\/v2\/posts\/166\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.truk.com\/ramble\/wp-json\/wp\/v2\/media?parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.truk.com\/ramble\/wp-json\/wp\/v2\/categories?post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.truk.com\/ramble\/wp-json\/wp\/v2\/tags?post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}