php安装mbstring扩展和bcmath扩展脚本

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扩展脚本

  1. #!/bin/bash
  2.  
  3. bcmath_ini=/etc/php.d/40-bcmath.ini
  4.  
  5. ## 安装bcmath扩展
  6. cd /data/softs
  7. sudo tar zxvf php-5.6.30.tar.gz
  8. cd /data/softs/php-5.6.30/ext/bcmath/
  9. sudo phpize
  10. sudo ./configure
  11. make &&make install
  12.  
  13.  
  14. ## 增加扩展配置
  15. cat > $bcmath_ini <
本博客所有文章如无特别注明均为原创。作者:小乐复制或转载请以超链接形式注明转自 众众帮
原文地址《php安装mbstring扩展和bcmath扩展脚本
分享到:更多

相关推荐

发表评论

路人甲 表情
Ctrl+Enter快速提交

网友评论(0)