http://pecl.php.net/package/Fileinfo
备注:(解决方法:添加虚拟内存解决,一键添加虚拟:/?post=10)
编译PHP make 时出现错误
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
这是由于内存小于1G所导致.
php7213版本安装
wget https://raw.githubusercontent.com/915955605/it/master/31/tpl_php7213.sh -O tpl_php7213.sh;sh tpl_php7213.sh
php7213版本fileinfo
yum -y install file-devel wget -c https://raw.githubusercontent.com/915955605/it/master/33/php-7.2.13.tar.bz2 -O php-7.2.13.tar.bz2 tar xjf php-7.2.13.tar.bz2 cd php-7.2.13/ext/fileinfo /vhs/kangle/ext/tpl_php7213/bin/phpize ./configure --with-php-config=/vhs/kangle/ext/tpl_php7213/bin/php-config make -j 4 make install
最后编辑/vhs/kangle/ext/tpl_php7213/php-templete.ini,在底部插入
extension = "/vhs/kangle/ext/tpl_php7213/lib/php/extensions/no-debug-non-zts-20170718/fileinfo.so"
然后重载kangle配置文件即可
/vhs/kangle/bin/kangle -r
发表评论