Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a ubuntu 9.04 desktop that i'm using for my development machine with apache2 installed.

What are the steps that I need to go through to ensure that the mime types for files are determined correctly?

Currently all files are resolving to a mime-type of 'text/plain' because php is not configured correctly for mime_content_type() to work.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Looking at php.net it appears mime_content_type() is deprecated and it is now recommended to use Fileinfo. Check this thread for installation instructions on Ubuntu. http://ubuntuforums.org/showthread.php?t=722373

share|improve this answer
    
Why it is deprecated in favor of an inferior method I have no idea, thanks for the answer though. –  Josiah Aug 12 '09 at 7:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.