How to enable/install the php fileinfo module for php 7.2

24,194

On Ubuntu / Debian fileinfo is supposedly installed and enabled by default, so I find your problem a bit puzzling.

I suggest to check if in the file php.ini you have the following line, and if not then add it :

extension=fileinfo.so

If the file is commented out, just delete the ; at the beginning of the line.

If you still have a problem, check if you have the shared library fileinfo.so in the ext folder of PHP.

Share:
24,194

Related videos on Youtube

Ilco Bosboom
Author by

Ilco Bosboom

Updated on September 18, 2022

Comments

  • Ilco Bosboom
    Ilco Bosboom over 1 year

    I am running a nginx Server on ubuntu of which i am trying to install moodle. But I cant procédé with the setup because it needs the php fileinfo module enabled/or/instald. To be able to procédé with the instal of moodle.

  • Ilco Bosboom
    Ilco Bosboom over 5 years
    ive checkt the exstension folder.and the php.ini it seems to be added . but its not loading for some reason - i am using php-fpm v 7.2
  • harrymc
    harrymc over 5 years
    Something may be wrong with fileinfo.so. My guess would be a missing dependency. For checking see this post.
  • harrymc
    harrymc over 5 years