How to enable deflate option in cPanel?

If you are tiresome to use deflate selection in your .htaccess, you might be receiving Internal Error such as:
.htaccess: Unknown filter provider DEFLATE
To fix this error and enable deflate in your cPanel server, you have to build Apache with deflate option.

Log into WHM

After you are logged in, search for "EachApache" in left menu and go to the main page
Select "previously saved config" and click on "start customizing based on profile"
Keep clicking "next" until you see the option for "exhaustive option list" and click on the button
Look for "deflate" and check the box
Click on "save and build" at the bottom of the page
*Build process can take everywhere from 15 minutes to 30 minutes depending on the server specs.  Once complete, you can start using deflate tags in your .htaccess and also enable optimization in cPanel for the website.  This option is situated under "Software/Services" and it is called "Optimize Websites".  
Here is an example of the deflate code that you can use in .htaccess after you enable it on the server –

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

List of Common Available Ports On Cloud And VPS Servers

Inside our Cloud and VPS hosting services we want to make assured our clienteles have the skill...

Cloud Hosting VS. Shared Hosting

Shared hosting is the general hosting solutions. But using a shared hosting solution user has to...

How to block IP using .htaccess file?

1) You may block entrance to your website from particular IP addresses using .htaccess file.2)...

How to Delete a cPanel Account From SSH

You can also terminate an account using SSH/command line if wanted using the following script....


Eliminating an existing cPanel account is a very fast and easy process, but be advised this move...