安装被disable的php扩展

php -i|grep fileinfo  //查看是否存在

根据各自的版本号进行下载

wget -O php-7.3.11.tar.gz http://cn2.php.net/get/php-7.3.11.tar.gz/from/this/mirror

进入扩展目录

cd /your path/ext/fileinfo

开始编译安装

/usr/local/php/bin/phpize
./configure -with-php-config=/usr/local/php/bin/php-config
make && make install

添加扩展到php.ini

vim /usr/local/php/etc/php.ini
加入:extension=fileinfo.so

重启PHP服务

分享到:

40 条评论

昵称
  1. Simply wanna state that this is handy, Thanks for taking your time to write this.

  2. I’d have to examine with you here. Which is not one thing I usually do! I take pleasure in reading a post that may make folks think. Additionally, thanks for permitting me to comment!

  3. This is the right blog for anyone who wants to find out about this topic. You realize so much its almost hard to argue with you (not that I actually would want…HaHa). You definitely put a new spin on a topic thats been written about for years. Great stuff, just great!

  4. My husband and i were thrilled that Peter managed to deal with his preliminary research out of the precious recommendations he got from your own blog. It’s not at all simplistic just to always be releasing guidelines which usually men and women have been selling. And we all discover we’ve got the writer to give thanks to for this. The specific explanations you have made, the simple web site navigation, the relationships you can assist to foster – it’s many exceptional, and it is assisting our son and us do think that issue is exciting, which is certainly truly mandatory. Thank you for everything!

  5. Absolutely indited articles, Really enjoyed looking at.

  6. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get three emails with the same comment. Is there any way you can remove me from that service? Thank you!

  7. Enjoyed reading this, very good stuff, thankyou. “Management is nothing more than motivating other people.” by Lee Iacocca.

  8. hey there and thank you for your information – I have certainly picked up something new from proper here. I did alternatively experience several technical points using this site, as I skilled to reload the website lots of occasions prior to I may just get it to load correctly. I have been brooding about in case your web hosting is OK? Now not that I am complaining, however sluggish loading instances occasions will often have an effect on your placement in google and could damage your quality rating if ads and ***********|advertising|advertising|advertising and *********** with Adwords. Well I’m including this RSS to my e-mail and can look out for a lot more of your respective interesting content. Ensure that you replace this again very soon..

  9. WONDERFUL Post.thanks for share..more wait .. …

  10. looking

    I like this blog very much so much good information.