PHP Fileinfo extension must be installed/enabled to use Intervention Image

半城伤御伤魂 提交于 2019-12-04 14:13:07

问题


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?


回答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.



来源:https://stackoverflow.com/questions/44426078/php-fileinfo-extension-must-be-installed-enabled-to-use-intervention-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!