The contents of the attached text file contain consolidated step-by-step instructions for installing and configuring mimedetect, and required 3rd party components, on a fresh Ubuntu LAMP server running Drupal 6.15.

I am providing this documentation not as an issue, rather, as time saving information for those whom wish to make use of mimedetect.

Perhaps the contributor(s) of the wonderful module may use this to create a document page. If they do I would be happy to assist in maintaining documentation.

Kindest Regards,
Troy

CommentFileSizeAuthor
#2 installSteps.mimedetect.txt1 KBnomadcanuck
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Weka’s picture

Thanks Troy,

Did you forget to attach the text file?

nomadcanuck’s picture

Wow! ...I could have sworn... It appears I did neglected to attach the text file, sorry about that!

ccardea’s picture

This has been helpful to me. Do I understand correctly that:

1. The Fileinfo PHP extension needs to be installed on the server?
2. You need to create a fileinfo.ini file that contains the text "extension=fileinfo.so"?
3. You need to add the following to your settings.php file
"$conf = array(
'mimedetect_magic' => '/usr/share/file/magic',
);"?

Also it looks like you are using the tar command to extract files from the tar.gz file. This is a problem for me. I tried to use 7Zip file manager to extract the files on my local machine, but I get nothing. Can anyone give me a hint?

ccardea’s picture

OK, since I managed to get the files from CVS, the README has cleared things up a bit for me.

manuel.adan’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this as outdated, feel free to re-open if you're still looking for a solution and waiting for appropriate assistance.