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
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