1.找到安装包解压
Paste_Image.png
2.找得到fileinfo扩展所在目录
Paste_Image.png
3.执行/usr/local/php/bin/phpize
Paste_Image.png
4.执行./configure --with-php-config=/usr/local/php/bin/php-config
Paste_Image.png
5.执行make 执行make之后,在modules目录下有扩展名.so文件了
Paste_Image.png
Paste_Image.png
6.将扩展文件复制到指定地方
Paste_Image.png
6.编辑php.ini 配置如下(可以在vim里面 /;extension 快速定位)
Paste_Image.png
Paste_Image.png