installed fileinfo using easyapache, fileinfo can't load magic database

abe2

Registered
Dec 1, 2011
3
0
51
cPanel Access Level
Root Administrator
In my drupal sites status report, i see an error:
Fileinfo could not load the magic file. It could be corrupted. Try reinstalling the magic file distributed with the MimeDetect module.
I did a test outside drupal using the following php code:

<?php$fp = finfo_open(FILEINFO_MIME);if (!$fp) { echo "Failed to open database\n"; exit(1);}echo $fp->file(__FILE__);?>and I got this error:
Warning: finfo_open() [function.finfo-open]: Failed to load magic database at '/usr/share/file/magic'. in /home/site/public_html/test.php on line 3
Opening fileinfo database failed
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator

abe2

Registered
Dec 1, 2011
3
0
51
cPanel Access Level
Root Administrator
Hi Tristan
I tried those patches and they don't seem to work for me,
I updated to the latest version of mimedetect and I still have the problem.
Thanks
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Did you try posting on Drupal's forum about the issues you are experiencing with using their software?