必须安装/启用PHP Fileinfo扩展名才能使用Intervention Image [英] PHP Fileinfo extension must be installed/enabled to use Intervention Image

查看:440
本文介绍了必须安装/启用PHP Fileinfo扩展名才能使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆