Linux下安装php的mbstring扩展

在配置phpmyadmin的时候出现了“Fatal error: Call to undefined function mbdetectencoding() in /svr….”的错误提示,google后,是缺少了mbstring扩展,这个非php默认的扩展,需要安装。

命令如下:

  1. 安装扩展:  yum -y install php-mbstring 
  2. 在php.ini配置文件中添加:  extension=mbstring.so 
  3. 重启apache:  service httpd restart 
posted @ 2015-01-04 08:40  水煮白干  阅读(998)  评论(0编辑  收藏  举报