kangle php 5.6.33安装Fileinfo扩展功能的方法
听群友说安装什么苹果CMS会无法安装,提示要什么几把Fileinfo2006年的老东西了,不确保可用,看介绍说5.3或者以上版本不支持?好像是说存放到了php的目录下,试试强制安装
http://pecl.php.net/package/Fileinfo
yum -y install file-devel
wget -c http://github.itzmx.com/1265578519/kangle/master/php/5.6/5633/php-5.6.33.tar.bz2 -O php-5.6.33.tar.bz2
tar xjf php-5.6.33.tar.bz2
cd php-5.6.33/ext/fileinfo
/vhs/kangle/ext/tpl_php5633/bin/phpize
./configure --with-php-config=/vhs/kangle/ext/tpl_php5633/bin/php-config
make -j 4
make install
然后会返回,so文件就在里面了
Installing shared extensions: /vhs/kangle/ext/tpl_php5633/lib/php/extensions/no-debug-non-zts-20131226/
最后编辑/vhs/kangle/ext/tpl_php5633/php-templete.ini,在底部插入
extension = "/vhs/kangle/ext/tpl_php5633/lib/php/extensions/no-debug-non-zts-20131226/fileinfo.so"
然后重载kangle配置文件即可
/vhs/kangle/bin/kangle -r
页:
[1]