Centos下PHP缺少mbstring扩展的解决办法
时间:2016-02-27 15:12 来源:linux.it.net.cn 作者:IT
如果我说缺少mbstring扩展,你可以肯定想到的是运行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扩展所致。
解决方法如下
1.通过YUM执行安装
yum install php-mbstring
2. 修改php.ini
echo ‘extension=mbstring.so’ >>/usr/local/lxlabs/ext/php/etc/php.ini
3. 重启web service
如果是apache: service httpd restart
如果是lighttpd: service lighttpd restart
4. 安装成功
(责任编辑:IT)
如果我说缺少mbstring扩展,你可以肯定想到的是运行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扩展所致。 解决方法如下 1.通过YUM执行安装 yum install php-mbstring 2. 修改php.ini echo ‘extension=mbstring.so’ >>/usr/local/lxlabs/ext/php/etc/php.ini 3. 重启web service 如果是apache: service httpd restart 如果是lighttpd: service lighttpd restart 4. 安装成功 (责任编辑:IT) |