The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'EasyApache' started by abe2, Dec 1, 2011.

  1. abe2

    abe2 Registered

    Joined:
    Dec 1, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
  3. abe2

    abe2 Registered

    Joined:
    Dec 1, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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?
     
  5. abe2

    abe2 Registered

    Joined:
    Dec 1, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    good Idea, I will post it there.
    I thought its a problem with fileinfo php module.
     
Loading...

Share This Page