This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Purgeru
Purgeru

I got this message when I installed October CMS:

System configuration tips There are issues you need to pay attention to in order to configure the system properly. The PHP extension fileinfo is not installed. Please install this library and activate the extension.

How to fix that?

kattsoff
kattsoff

You should uncomment in your php.ini this line:

extension=php_fileinfo.dll
Purgeru
Purgeru

Sorry, where can I find this file?

cdude00418906
cdude00418906

same problem here tell in detail please.

dazmiller8556
dazmiller8556

depends on what OS and setup your using.

Easiest way is to create a page that has the following code on it.

<?php phpinfo(); ?>

This will display information about your PHP setup.

Look for the property

Loaded Configuration File

This will tell you the path to your PHP.ini file.

Open up this file using a text editor and search for the word 'extension'

You will see a bunch of them, many will have a semicolon ; infront of them. Find the line as indicated by kattsof and remove the semicolon. Restart apache or IIS and voila, it will load this dynamic extension.

Hope this helps

levin
levin

I had the same issue on xampp. Uncommented the fileinfo line in php.ini, restarted apache and the issue continues.

In phpinfo() the fileinfo library is loaded.

Any clues?

Thanks,

kiran14097
kiran14097

thanks @kattsoff

AlanQ
AlanQ

What's the solution for those of us on shared hosting who only have .htaccess? :)

What problems will be caused by not having fileinfo installed?

Can these problems be solved without fileinfo?

Can we (should we) make the error message go away?

Last updated

Crazymodder
Crazymodder

What's the solution for those of us on shared hosting who only have .htaccess? :)

It depends on your hoster. Some Hoster allow overriding settings, easiest way to find out is to mail your hoster or simply change it;)

Last updated

AlanQ
AlanQ

Hi @crazymodder

In my experience, if I run phpinfo() and find '--disable-fileinfo'

  1. It can't be changed.
  2. they won't be changing their policy for one client.

Perhaps my questions should have been:

  1. Can fileinfo (and the backend check for it) be disabled in OctoberCMS without breaking anything important?
  2. If so, how?
Crazymodder
Crazymodder

I think you need it for checking file uploads. Yes I know that hosters won't change their policy but why you choose simply another one?

abbot
abbot

Hello @alanQ

if you are using cpanel and have the paper lantern theme, under the software dashlet click php. there you should see a list of all the modules. you can check fileinfo... voila you are done

AlanQ
AlanQ

Thank you @Crazymodder (sorry for the delay) and @naemugo17099

Yes I know that hosters won't change their policy but why you choose simply another one?

First apparently immutable problem I've had with them. Customer support is second to none. So, I'd rather stay with them.

if you are using cpanel and have the paper lantern theme, under the software dashlet click php. there you should see a list of all the modules. you can check fileinfo... voila you are done

I would imagine this also requires a host with an enable/disable policy ;)

Problem solved for me:

fileinfo was probably disabled when there was a security bug (http://www.cvedetails.com/cve/CVE-2013-4636/). Not re-enabling fileinfo when the bug was fixed was an oversight. My host scheduled a server restart with fileinfo enabled :) This illustrates why I'm sticking with them.

simmonsfrank52827
simmonsfrank52827

kattsoff said:

You should uncomment in your php.ini this line:

extension=php_fileinfo.dll
Thanks dude! I'm using UniServer to try this from home for now, had to edit the php_production.ini file in core/php7 folder, restarted the server and bam!!
)
ranjeetha62981
ranjeetha62981

on xampp server (php.ini file) search for extension=gd and extension=fileinfo and uncomment. This solution worked for me.

1-15 of 15

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.