Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 1 down vote accepted

Looking at it appears mime_content_type() is deprecated and it is now recommended to use Fileinfo. Check this thread for installation instructions on Ubuntu.

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

Your Answer


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.