skip to Main Content

I’ve used intervention image package in Laravel 5 project. It is working in local server. Now when I uploaded in shared server via cpanel, I am getting error:

MissingDependencyException in ImageManager.php line 123:
PHP Fileinfo extension must be installed/enabled to use Intervention Image.

Server has PHP Version 5.6.19

I went through requires ext-fileinfo. How do I add that into my composer.json file? but couldn’t get solution. Where is the php.ini file inside my cpanel?

2

Answers


  1. You can enable fileinfo extension from cpanel
    1 Go to SOFTWARE=>Select PHP Version=>fileinfo check box and enable fileinfo extension.
    You can see in image.

    Login or Signup to reply.
  2. 1- Go to your php folder under your server (xammp etc.).
    2- Find php.ini file
    3- ;extension=php_fileinfo.dll find the line.
    4- remove ";" from the line
    result : extension=php_fileinfo.dll
    5- save file and restart your server and İt should be fixed it all.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search