php安装mbstring扩展
cd php-5.6.30/ext/mbstring
/usr/local/php/bin/phpize
./configure –with-mbstring=/usr/local/mbstring –with-php-config=/usr/local/php/bin/php-config
make
sudo make install
vi /usr/local/php/etc/php.ini
extension=mbstring.so
安装bcmath扩展脚本
#!/bin/bash
bcmath_ini=/etc/php.d/40-bcmath.ini
## 安装bcmath扩展
cd /data/softs
sudo tar zxvf php-5.6.30.tar.gz
cd /data/softs/php-5.6.30/ext/bcmath/
sudo phpize
sudo ./configure
make &&make install
## 增加扩展配置
cat > $bcmath_ini <