1.找到安裝包解壓
Paste_Image.png
2.找得到fileinfo擴(kuò)展所在目錄
Paste_Image.png
3.執(zhí)行/usr/local/php/bin/phpize
Paste_Image.png
4.執(zhí)行./configure --with-php-config=/usr/local/php/bin/php-config
Paste_Image.png
5.執(zhí)行make 執(zhí)行make之后,在modules目錄下有擴(kuò)展名.so文件了
Paste_Image.png
Paste_Image.png
6.將擴(kuò)展文件復(fù)制到指定地方
Paste_Image.png
6.編輯php.ini 配置如下(可以在vim里面 /;extension 快速定位)
Paste_Image.png
Paste_Image.png