Getting warning about installing file but file installed and working

chrissearle - July 24, 2008 - 16:04
Project:MimeDetect
Version:5.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm getting the following in the status view:

MimeDetect is using the browser supplied mime type or file extension lookups. It is strongly recommended that you install and configure the PHP Fileinfo Extension or the UNIX 'file' command to provide more accurate severside mime type detection

But - this is running on debian linux and the file command is definitely installed:

sites/all/modules/mimedetect$ file magic.mime
magic.mime: magic text file for file(1) cmd
sites/all/modules/mimedetect$ which file
/usr/bin/file

Any clues as to why it's flagging file as missing?

#1

dopry - August 1, 2008 - 17:43

is the path to file correct? does the webserver have permission to execute it?

#2

chrissearle - August 2, 2008 - 09:45
Status:active» closed

Hmm. Now that's embarrassing. I wondered what you meant about the path being correct - so I took a (better) look thru the admin settings. Hadn't spotted that there was a config for the mime settings - it really helps to check the checkbox doesn't it :)

 
 

Drupal is a registered trademark of Dries Buytaert.