Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer error: "PHP extension fileinfo is missing from your system"

I'm trying to install Laravel package Intervention Image and when I run composer update:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - intervention/image 2.0.5 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.4 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.3 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.2 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - Installation request for intervention/image 2.* -> satisfiable by intervention/image[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5].

I have php 5.4 and the extension is enabled in php.ini, and in phpinfo():

                    fileinfo

fileinfo support                  enabled
version                           1.0.5

and restarted apache... but still no luck.

like image 564
Positivity Avatar asked Sep 02 '25 14:09

Positivity


1 Answers

Windows users: just edit php.ini and uncomment this line:

extension=php_fileinfo.dll

Remember to restart Apache for new php.ini to take effect.

like image 140
vivek Avatar answered Sep 05 '25 03:09

vivek