Install fileinfo php extension

前端 未结 4 1737
天涯浪人
天涯浪人 2021-01-12 22:10

As the fileinfo is moved from PECL to PHP. What is the best way to install it through WHM or putty.?

I tried following command:

pecl install fileinfo
<         


        
相关标签:
4条回答
  • 2021-01-12 22:35

    This extension is enabled by default as of PHP 5.3.0. Before this time, fileinfo was a PECL extension but is no longer maintained there. However, versions prior to 5.3+ may use the » discontinued PECL extension.

    Reference:

    http://www.php.net/manual/en/fileinfo.installation.php


    ERROR: `phpize' failed
    

    This error is displayed because you don't have php-devel package installed

    0 讨论(0)
  • 2021-01-12 22:40

    I encountered this, and needed to install php-fileinfo for WHM on a VPS Dedicated server. This https://www.inmotionhosting.com/support/website/how-to-install-a-php-extension-using-easyapache-4/ was very helpful. I figured id post this for the next guy.

    0 讨论(0)
  • 2021-01-12 22:45

    For me this is working

    #yum install rh-php70-php-devel
    

    https://centos.pkgs.org/7/centos-sclo-rh/rh-php70-php-devel-7.0.10-2.el7.x86_64.rpm.html

    0 讨论(0)
  • 2021-01-12 22:54

    Are you install php-devel?
    phpize execute need's php-devel package. if you are on centos run the following code

    yum install php-devel
    
    0 讨论(0)
提交回复
热议问题