php5.4.31安装php_fileinfo扩展和php_intl扩展

相关软件下载

经测试lnmp1.1升级php5.4.31可用

lnmpa1.1升级php5.4.31不可用,会变一个关于apache的错误



首先安装lnmp1.1

lnmp1.1安装

lnmp1.1升级php5.4.31

cd /root/lnmp1.1-full/

./upgrade_php.sh

5.4.31

安装php_fileinfo扩展

cd /root/lnmp1.1-full/php-5.4.31/ext/fileinfo

/usr/local/php/bin/phpize

./configure --with-php-config=/usr/local/php/bin/php-config

make && make install

修改php.ini配置:加入 extension=”fileinfo.so”

安装php_intl扩展

http://download.icu-project.org/files/icu4c/53.1/icu4c-53_1-src.tgz

tar -xzf icu4c-53_1-src.tgz

cd icu/source

./configure --prefix=/usr/local/icu

make

make install

wget http://pecl.php.net/get/intl-3.0.0.tgz

tar -xzf intl-3.0.0.tgz

cd intl-3.0.0

/usr/local/php/bin/phpize

./configure --enable-intl --with-icu-dir=/usr/local/icu/ --with-php-config=/usr/local/php/bin/php-config

make

make install

修改php.ini配置:加入extension=intl.so

你可能感兴趣的:(php)