How to Enable Gzip Compression with Optimize Website in cPanel

77 views
Short answer: Navigate to 'Optimize Website' in cPanel, select 'Compress All Content', and click 'Update Settings' to compress HTML, CSS, and JS output via GZIP/Brotli automatically.

Compress dynamic HTML, stylesheet, and script assets by up to 70% using web server mod_deflate compression directives.

Before you start: Back up your site files and database and download the backup to your own computer. How to take a full backup

Quick reference

Tool Location cPanel > Software > Optimize Website
Engine Module Apache mod_deflate / LiteSpeed compression
Recommended Mode Compress All Content
Bandwidth Savings Up to 70% reduction across text MIME types

Steps

  1. Access Optimize Website: Locate and click Optimize Website within the Software category in cPanel.
  2. Select Compression Scope: Choose Compress All Content to apply Gzip across all text MIME types.
  3. Commit Settings: Click Update Settings to write the configuration to your root .htaccess.

Troubleshooting and tips

  • Media Compression Considerations: Compressed binary media files (JPEG, PNG, WebP) are already packed; Gzip is specifically reserved for text-based assets.
Need more help? If you run into an error while following these steps, open a ticket with technical support and our team will look into it. Open a ticket
Was this article helpful?
No, I need more help
Didn't find your answer?
Under 3 minutes
Submit Support Ticket