必须安装/启用PHP Fileinfo扩展名才能使用Intervention Image [英] PHP Fileinfo extension must be installed/enabled to use Intervention Image
问题描述
我在Laravel 5项目中使用了干预图像包.它在本地服务器上工作.现在,当我通过cpanel上传到共享服务器中时,出现了错误:
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.
服务器的PHP版本为5.6.19
Server has PHP Version 5.6.19
我经历了需要ext-fileinfo.如何将其添加到我的composer.json文件中?,但找不到解决方案. cpanel中的php.ini
文件在哪里?
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?
推荐答案
您可以从cpanel启用fileinfo扩展名 1转到SOFTWARE =>选择PHP版本=> fileinfo复选框并启用fileinfo扩展名. 您可以在图像中看到.
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.
这篇关于必须安装/启用PHP Fileinfo扩展名才能使用Intervention Image的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!