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

2

10

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?

Krefeld answered 8/6, 2017 at 3:19 Comment(11)
And what's the question? It's pretty obvious you're missing the FileInfo extension on the shared server. Install it.Ransell
Possible duplicate of requires ext-fileinfo. How do I add that into my composer.json file?Aldridge
Sorry, How can I install FileInfo extension? I only have access of cpanel.Krefeld
It's very likely you'll have to ask your hosting company to do so, unless cpanel allows you to load extra PHP extensions.Ransell
@Ransell It is written in php manual that phpinfo extension is enabled by default as of PHP 5.3.0 but my server is already running in PHP Version 5.6.19 php.net//manual/en/fileinfo.installation.phpKrefeld
I've seen some cheap hosting companies running PHP on top of IIS or on Windows servers. Make sure this is not the case (that would explain why the extension is disabled). Run a phpinfo() in a page on the server to get a better understanding of what is installed and/or enabledRansell
@Ransell I run phpinfo(); It shows system is linux and PHP Version 5.6.19Krefeld
Then it's a mystery and you need to investigate with your hosting providerRansell
@SureshPokharel did you fix the problem?Unscrupulous
@Unscrupulous Not yet. Actually, I figured out that I don't have access to enable the fileinfo extension. Please share if you got anything about this?Krefeld
Try and enable manually from your Cpanel. You will see it where you will select PHP version. Contact your hosting company if you still have the same problem after you enable it manually.Athwart
O
26

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.

Omniscient answered 19/10, 2017 at 20:22 Comment(0)
F
0

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.

Funderburk answered 28/5, 2021 at 11:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.