Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Control Panel»Enable Apache Gzip Compression (mod_deflate) in cPanel Account

    Enable Apache Gzip Compression (mod_deflate) in cPanel Account

    By RahulAugust 17, 20212 Mins Read

    Apache mod_deflate module is used for compressing content before serving to client. You can configure compression only if your hosting provider has enabled the mod_deflate module in Apache.

    Advertisement

    The WHM administrators can enable Gzip globally for all cPanel accounts using WHM control panel. Non cPanel users can enable gzip in Apache web server or Nginx web server using command line.

    Let’s use the following steps to enable Apache gzip compression using the cPanel web interface.

    Step 1 – Login to cPanel Account

    Firstly login to your cPanel account using the web interface. The default cPanel interface is accessible on ports 2083 (SSL) and 2082 (non-SSL). The default URL of cPanel access could be like:

    https://mydomain.com:2083
    

    Log in with the cPanel credentials.

    Step 2 – Open Optimize Website Panel

    After login in to the cPanel account, You will find the option Optimize Website under the Software section. Just click on Optimize Website icon to open settings.

    Step 3 – Enable Apache Gzip Compression

    On this page, you will find three options to select. Get below details of each option and select the appropriate option.

    • Disabled – Select this option to disable gzip compression for you website and click Update Settings.
    • Compress all content – Select this option to compress all your website’s content and click Update Settings.
    • Compress the specified MIME types – Select this option and input the MIME types in below text box to compress specific files only and click Update Settings. MIME types list on Wikipedia

    and you have all done. You have successfully enabled Gzip compression for your site. Use this link to verify the compression.

    Apache compression cpanel gzip whm
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Comparing Apache MPM Worker and Prefork: Which is Right for Your Application

    How to Install Apache (httpd) on RHEL & CentOS Stream 9

    How to Install LAMP Stack on RHEL & CentOS Stream 9

    View 24 Comments

    24 Comments

    1. Chris on July 30, 2021 7:12 am

      Thanks for sharing the data compression procedure.

      Reply
    2. John on August 1, 2019 5:01 am

      Just also be aware that CPU utilization is increased 25-35% when compression is enabled ;0)

      Reply
    3. Competitive Papers on February 1, 2019 10:56 am

      Thanks a lot . It’s really working.

      Reply
    4. mohammad on January 23, 2019 3:00 pm

      Thanks a lot 🙂

      Reply
    5. Abhishek Agarwal on January 15, 2019 8:00 pm

      Is after doing this, will it affect the website in any sense like reducing the quality of images or any other issues?

      Reply
    6. Kishan on January 5, 2019 1:58 am

      Thanks for offering this helpful post on gzip.

      Reply
    7. Daniel Law on July 18, 2018 11:58 pm

      Thanks heaps, worked like a treat.

      Reply
    8. Ricky on May 8, 2018 2:03 am

      Hello. Thanks for sharing this steps. If I enable all compression, will this affect images loading?

      Reply
    9. HElly on February 24, 2018 8:49 am

      Thanks for sharing valuable information. This is very importance for me.

      Reply
    10. Francisco Bravo on January 29, 2018 12:17 am

      Thanks for the info

      Reply
    11. rajendra dubey on January 20, 2018 7:01 pm

      Thanks a lot . it worked

      Reply
    12. rajendra dubey on January 20, 2018 5:57 pm

      I have used the above said settings , but on checking the gzip compression it is showing me that gzip is not enabled

      Reply
    13. Ali on January 11, 2018 8:00 am

      It was useful ;
      Do we need to activate something in WHM ?
      Thanks

      Reply
      • Rahul K. on January 11, 2018 11:07 am

        Nothing more to activate.

        Reply
      • Jamal on January 21, 2019 7:42 pm

        You need to enable mod_deflate on the server if the option does not show up in cPanel

        Reply
    14. طراحی سایت on December 3, 2017 7:42 am

      great and tank for topic

      Reply
    15. Hicham Saadi on October 29, 2017 10:37 am

      right to the point, thank you

      Reply
    16. پروژه معماری on September 2, 2017 1:36 pm

      thank you RAHUL it was excellent
      its active in my website now with your guide

      Reply
    17. قالب وردپرس on September 2, 2017 1:35 pm

      dear RAHUL
      thank you for your great article
      i activate this in my website
      but can you publish a new article for how to activate gzip in DirectAdmin?

      Reply
    18. Michael Ogbonnaya Odo on July 30, 2017 10:01 am

      Thanks a lot. This has helped increase my website’s speed and reduce page load times.

      Reply
    19. hamza ali on July 16, 2017 9:44 am

      Thank u Sir

      Reply
    20. David on June 9, 2017 8:54 pm

      Cheers, that did the trick. Thanks for making it easy!

      Reply
    21. Chrish Marsh on December 24, 2016 4:26 pm

      You are really genius.
      Thanks

      Reply
    22. Aditi Verma on December 24, 2016 4:24 pm

      Thanks boss.. superb steps.

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.