kangle php 7.2.20安装Fileinfo扩展功能的方法
Flarum会无法上传头像图片,500报错提示要什么几把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/7.2/7220/php-7.2.20.tar.bz2 -O php-7.2.20.tar.bz2
tar xjf php-7.2.20.tar.bz2
cd php-7.2.20/ext/fileinfo
/vhs/kangle/ext/tpl_php7220/bin/phpize
./configure --with-php-config=/vhs/kangle/ext/tpl_php7220/bin/php-config
make -j 4
make install
如果出现make: *** Error 1错误,请检测服务器内存是否大于1G
然后会返回,so文件就在里面了
Installing shared extensions: /vhs/kangle/ext/tpl_php7220/lib/php/extensions/no-debug-non-zts-20170718/
最后编辑/vhs/kangle/ext/tpl_php7220/php-templete.ini,在底部插入
extension = "/vhs/kangle/ext/tpl_php7220/lib/php/extensions/no-debug-non-zts-20170718/fileinfo.so"
然后重载kangle配置文件即可
/vhs/kangle/bin/kangle -r
{:3051:} {:3069:}
页:
[1]