I need FileInfo extension installed (PECL)

Category: Website

2013-03-24 8:15 am EST

Hits: 631
How do I go about getting the FileInfo extension installed on our server? We upload files and I want to have a bit more control over which mime types are uploaded. The user who does the uploads isn't always great at picking the right pdf file or mp3 file.

You must login before you can ask a follow up question.

You must login before you can submit an answer.



7,266 Points
2013-03-25 12:36 pm EST
Hello apostles,

Thank you for your question. On a server running PHP 5.3 or newer, PECL fileinfo is already installed.

If you are running PHP version 5.2 or older you can issue a shell command from PHP to use the "file" command.

You can view your PHP version in cPanel.

If you have any further questions, feel free to post them below.
Thank you,


You must login before you can post a comment about this answer.

Like this Question?

News / Announcements

WordPress wp-login.php brute force attack
Updated 2014-07-17 06:43 pm EST
Hits: 201671

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!