Results 1 to 2 of 2

Thread: Failed to load magic database

  1. #1
    Join Date
    Oct 2008
    Posts
    134

    Failed to load magic database

    Hi guys... I've been having this problem for a couple of days, I googled a lot and couldn't find a definitive solution.

    I'm getting the following error with Fileinfo PECL extension on PHP 5.2.13:

    Code:
    Warning: finfo_open(): Failed to load magic database at '/usr/share/misc/magic'. in /root/mime.php on line 2
    The file /root/mime.php has the following:

    Code:
    <?php
    $fp = finfo_open(FILEINFO_MIME);
    if (!$fp) {
        echo "Failed to open database\n";
        exit(1);
    }
    echo $fp->file(__FILE__);
    ?>
    /usr/share/misc/magic is a symlink to /usr/share/magic which is a symlink to /usr/share/file/magic. I tried changing the permissions of the file, but nothing happens.

    Any ideas?

    Thanks!

  2. #2
    Join Date
    Feb 2011
    Posts
    1
    Hi,

    I also have the same issue. How to solve it? Is the fileinfo need to be updated or configured? Or is it the magic file need to be updated? How can I do that? Can anyone help?

    Thank you very much for your help.

    Best regards,

Similar Threads

  1. Replies: 16
    Last Post: 02-16-2012, 03:17 PM
  2. High load cause of da_admin searching database?
    By redunix in forum General Technical Discussion & Troubleshooting
    Replies: 1
    Last Post: 09-21-2009, 05:39 AM
  3. Roundcube: DATABASE ERROR: CONNECTION FAILED!
    By blackhawkit in forum General Technical Discussion & Troubleshooting
    Replies: 0
    Last Post: 11-08-2007, 01:36 AM
  4. Magic # is 337
    By herotm in forum Apache (WWW)
    Replies: 2
    Last Post: 10-15-2007, 12:52 PM
  5. Magic Wand
    By maxloxton in forum 3rd Party Software
    Replies: 5
    Last Post: 03-15-2005, 09:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •