Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.htaccess enable php fileinfo extension

I've used shared host for hosting my application and the version is php5.3.27. I'm getting an error like

 Call to undefined function finfo_open() 

So I've gone through some articles where I suggested by enabling fileinfo extension in .htaccess. For the first time I'm getting this error. Please help me to get the solution. The work would be more appreciated.

like image 896
Sanganabasu Avatar asked Dec 27 '13 05:12

Sanganabasu


2 Answers

See this answer:

In your php.ini file, make sure you have something like this in it:

extension=fileinfo.so

or if you're on windows, php_fileinfo.dll.

like image 67
Jon Lin Avatar answered Oct 03 '22 13:10

Jon Lin


It's easy actually to access and modify php.ini file to enable file info. I just know by accident. So you search software/service which is there is select PHP version. Click it, and you will see your PHP Version. Try to change first (downgrade or upgrade, up to you) and then you will see that below there is fileinfo which in default not checklist yet. All you have to is, return the version of your PHP, and then checklist fileinfo, and click save. Thats it.

like image 42
otongbae Avatar answered Oct 03 '22 11:10

otongbae