从源码编译安装php,重新编译php,configure参数中加入 –enable-mbstring,如下所示,
./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql\
--with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --enable-mbstring
[注] 其它configure参数按你的php相关路径进行配置
redhat/centOS/fedora系列使用yum在线安装
sudo yum install php-mbstring sudo /sbin/service httpd restart
Mac下可以如下进行
sudo port install php5-mbstring apachectl restart
延伸阅读
- windows下PHP 激活mbstring扩展及php.ini中相关基本设置
- CGI原理示例,及CGI,FastCGI,php-cgi,php-fpm等的总结
- php函数similar_text:比较字符串相似度
- 关于php打开文件的写法原因之辨误
- 为windows下php5.2安装memcache等扩展/及扩展官方下载
- PHP session回收机制及php.ini session生命期gc_maxlifetime配置/gc_maxlifetime无效
- PHP时间戳函数总结一览
- fedora linux下php调试利器xdebug 2.1.0下载/fedora13,14测试通过
- 腾讯php程序员面试题目
- PHP读取excel(.csv, .xls)文件的方法
- 隐藏apache和php的版本
0 条评论。