I have ext-fileinfo but Composer says it is missing

前端 未结 9 1579
旧时难觅i
旧时难觅i 2020-12-03 05:12

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

Your requirements could not be resolved to an installa         


        
相关标签:
9条回答
  • 2020-12-03 05:32

    Depending on your platform, there may be more php.ini, if you are using Wamp, then there are two:

    • wamp\bin\php\php5.4.3\php.ini
    • wamp\bin\apache\Apache2.4.4\bin\php.ini

    Make sure the extension is uncomented in both and then restart apache again.

    0 讨论(0)
  • 2020-12-03 05:45

    I have this exactly same problem. Fixed by going to wamp/bin folder, and searching for .ini. You will find several php.ini files.

    Edit the extension=php_fileinfo.dll line in all of them removing the ; at the begging of each. Restart WAMP, enter php -m in the command-line to check if fileinfo is there now.

    Should work.

    0 讨论(0)
  • 2020-12-03 05:45

    If anyone is wondering how to do this in cpanel (linux based) , just search select php version in search box and click on it and next screen you will your current php version and next you see lots checkboxes with some values , So here now you can check phpinfo and click on save to avoid your composer error.

    0 讨论(0)
提交回复
热议问题