WHM/cPanel

How to add/delete mime type in cPanel

MIME types (Multipurpose Internet Mail Extensions) relay information to the browser about how to handle file extensions. MIME types can allow visitors’ browsers to handle new technologies as they become available.For example you can add the extension .cgi of MIME Type — application/cgi to be handled by the browser.

In other words ,MIME type tells browsers how to handle specific extensions. For example, the text/html MIME type equates to .htm, .html, and .shtml extensions on most servers, and this tells your browser to interpret all files with those extensions as HTML files. 

The Internet Assigned Numbers Authority (IANA) is responsible for all official MIME types, and you can find the most up-to-date and complete list at their Media Types list page.

In addition you can alter or add new MIME type specifically for your site . MIME types are often used to handle new technologies as they appear. When WAP technology first appeared no one had these extensions set up on their server. With MIME types, however, you could have set it up yourself and begun serving WAP pages immediately.

How to add a new MIME Type in cPanel

  1. Login to your cPanel account.
  2. From Advance Section from your cPanel dashboard click MIME Type icon.
  3. From MIME Types page under Create A MIME Type enter the following:
    1. MIME Type:Enter the name of the file type’s handler in the MIME Type text box.For example, application/cgi
    2. Extension(s):Enter the file extension in the Extension(s) text box.For example:.cgi , Separate multiple extension types with a space
  4. Click Add button.

Structure of a MIME type

The simplest MIME type consists of a type and a subtype; these are each strings which, when concatenated with a slash (/) between them, comprise a MIME type. No whitespace is allowed in a MIME type , Structure format:

    
     type/subtype
    
   

The type represents the major general category into which the data type falls, such as audio or text. And the subtype identifies the exact kind of data of the specified type the MIME type represents to be served.

How to Delete MIME Type in cPanel

  1. Login to your cPanel account.
  2. From Advance Section from your cPanel dashboard click MIME Type icon.
  3. Under User Defined MIME Types list from Action column you can click Delete link to remove the MIME type from your list, “Please note that you can only Delete the user defined MIME types, the built in system MIME types cant be deleted”.
XsoftHost Support

Share

Recent Posts

Add Extra IP addresses to server configuration On Ubuntu 17.10 and later

Each failover IP address will need its own line in the configuration file. The configuration…

3 years ago

Create RAID Arrays with mdadm on Ubuntu

What is mdadm? The mdadm utility can be used to create and manage storage arrays…

4 years ago

How to change the maximum upload file size for PHP

There are several scenarios that you might need to increase or decrease your php maximum…

6 years ago

How to install Let’s Encrypt Plugin in WHM/cPanel

What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…

6 years ago

How to install python in my cPanel and add py extension

Python normally installed on all cPanel hosting server because most of Centos/red hat update system…

6 years ago

How to install and enable GUI GNOME Desktop on centos 7

Usually CentOS 7 comes in a numbers of variants, For most users, there are two…

6 years ago