Bobcares

All About cPanel GZIP Compression

PDF Header PDF Footer

Learn more about cPanel GZIP compression from our experts. Our cPanel Support team is here to help you with your questions and concerns.

All About cPanel GZIP Compression

Did you know that gzip is used in Linux systems to compress HTTP content before it is served to the client?

This leads to faster network transfers. Although mod_deflate enabled is not enough to compress our content. Additionally, gzip compression is not compatible with the CGI PHP handler. In that case, we have to choose a different PHP handler to use it.

All About cPanel GZIP Compression

 

Gzip compression compresses HTTP content before it reaches the client. This leads to quick loading times. However, after enabling mod_deflate we have to configure it to compress specific types of files. Furthermore, Gzip compression doesn’t work seamlessly with the CGI PHP handler, so an alternative PHP handler must be selected.

How to Enable Gzip Compression via Website Optimization Tool

  1. To begin with, head to the domain’s cPanel and login.
  2. Then, go to the Software section and open the Optimize Website option.
  3. We can choose from the following 3 options under the Optimize Website feature:
    • Disabled
    • Compress All Content
    • Compress Specific Mime Types

    Here, the Disabled option is the default option. We can choose our preferred option, update settings, and click save.

  4. Now, we will get a confirmation message about the type of content the server will compress.

How to enable Gzip Compression via .htaccess

  1. To begin with, log in to cPanel and head to the Files section. Then, open the File Manager.
  2. Now, locate the .htaccess file in the public_html folder or home directory of the domain.
  3. Highlight the file and click Edit at the top, or right-click and select Edit.
  4. Then, head to the editor window and add this code to enable Gzip compression for specific file types:
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/xml
    ... (Add more types as needed)
    </IfModule>
  5. Finally, click Save Changes, then Close.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

In brief, our Support Experts introduced us to cPanel GZIP compression and how to enable it easily.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Get featured on the Bobcares blog and share your expertise with a global tech audience.

WRITE FOR US

GET UP TO 25% OFF

cPanel Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management & end-user tech support to us, and use that time to focus on the growth and success of your business.

TALK TO US Or click here to learn more.

Speed issues driving customers away?
We’ve got your back!