小樱 发表于 2020/4/25 03:52

kangle php 7.2.20安装exif扩展功能的方法

Flarum安装好Upload by FriendsOfFlarum插件后会无法上传附件图片,500报错提示要什么几把exif
存放到了php的目录下,试试安装
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/exif
/vhs/kangle/ext/tpl_php7220/bin/phpize
./configure --with-php-config=/vhs/kangle/ext/tpl_php7220/bin/php-config
make -j 4
make install

然后会返回,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/exif.so"

然后重载kangle配置文件即可
/vhs/kangle/bin/kangle -r



不可名 发表于 2020/4/25 03:58

{:3066:}
页: [1]
查看完整版本: kangle php 7.2.20安装exif扩展功能的方法