方法一:

如果运行phpMyAdmin发现如下错误:

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.
是因为没有mbstring扩展所致,解决方法如下

在SSH登录LINUX后执行以下命令:

1.执行
yum install php-mbstring

2. 修改php.ini (这一步非常重要, 部分lxadmin版本无法自动修改)
echo ‘extension=mbstring.so’ >>/etc/php.ini #更具php安装目录而定

3. 重启web service
如果是apache: service httpd restart

 

方法二:

php 5.36

安装目录:/usr/local/php

cd /usr/src/php-5.3.6/ext/mbstring

/usr/local/php/bin/phpize #create makefiles

./configure --with-php-config=/usr/local/php/bin/php-config

make && make install

echo ‘extension=mbstring.so’ >>/usr/local/php/php.ini

service httpd reload 

使用/usr/local/php/bin/php -v #查看配置是否错误

使用php.info查看mbstring是否安装成功

出现如下图则表明安装成功。

mbstring

Multibyte Supportenabled
Multibyte string enginelibmbfl
HTTP input encoding translationdisabled

 

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

 

Multibyte (japanese) regex supportenabled
Multibyte regex (oniguruma) backtrack checkOn
Multibyte regex (oniguruma) version4.7.1

 

DirectiveLocal ValueMaster Value
mbstring.detect_orderno valueno value
mbstring.encoding_translationOffOff
mbstring.func_overload00
mbstring.http_inputpasspass
mbstring.http_outputpasspass
mbstring.http_output_conv_mimetypes^(text/|application/xhtml\+xml)^(text/|application/xhtml\+xml)
mbstring.internal_encodingno valueno value
mbstring.languageneutralneutral
mbstring.strict_detectionOffOff
mbstring.substitute_characterno valueno value