How to Install and Configure Brotli Compression on CentOS Updated on July 2, 2021 by InMotion Hosting Contributor 2 Minutes, 28 Seconds to Read Looking to speed up website load time? After spending days making your site get better results using GTMetrix and Google’s PageSpeed tests, you may have seen requests to compress your site. If you’re on a VPS or Dedicated server you can go beyond just doing the gzip / mod_deflate compression on your sites. This guide will be walking you through how to install the Brotli Compression on your WHM. Before you begin the install process, complete a backup of your account so recovery can be made if needed. Also, your site will be shut down Brotli is being added. Consider enabling maintenance mode before starting the process. Is Brotli Compression already installed on your server?Install Brotli Compression via EA4Install Brotli Compression via SSHCheck Your InstallationConfigure your Brotli Installation Is Brotli Compression on CentOS already installed on your server? If you have switched to our build of NGINX on your server, you may already have Brotli installed on it. KeyCDN has a tool that will let you know if it’s installed on your server already. Visit https://tools.keycdn.com/brotli-test and give it one of the URLs on your server. If its already installed, the tool should reply back with something like the following: If it’s not already installed you will see the following: Install Brotli Compression via EasyApache 4 To install the Brotli Compression using EasyApache 4 you would just need to do the following steps: Log into WHM as rootChoose Software >> EasyApache 4 Click on Customize in the “Currently Installed Packages”Choose Apache ModulesSearch for mod_brotli and set it to InstallThen click on ReviewClick on Provision After its done Provisioning, you can verify its installed by checking again with https://tools.keycdn.com/brotli-test Install Brotli Compression via SSH If you would rather SSH into your server, instead of using EasyApache 4, then you will need to: SSH into your server as rootRun: yum install ea-apache24-mod_brotliReply Y to “Is this ok [y/d/N]:” While installing it this way it will show recent Log Messages, this can be ignored as long as at the end it shows something like: Check Your Installation If after installing Brotli Compression on CentOS the site still fails the test, make sure the domain has an SSL installed. Refer to our Guide to SSLs and AutoSSLs or contact us via Chat / Phone to have an SSL installed for you. Configuring Brotli Compression There are no configuration options in cPanel or WHM for what the Brotli Compression will process. However if you’re an advanced user you can modify what it compresses by modifying the file /etc/apache2/conf.d/brotli.conf. Congratulations! You now know how to install, check and configure Brotli Compression on CentOS using WHM. Check out our article if you want to learn more about the Brotli Compression Algorithm. Scalable VPS Infrastructure, Fully Managed When shared hosting can't handle your traffic, VPS delivers dedicated resources that scale with demand. Our team manages the technical complexity while you manage your business. NVMe Storage High-Availability Ironclad Security Premium Support VPS Hosting Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles How to Fix the “550 No Such User Here” Email Error What is Node.js? How to Deploy Websites Generated by AI Builders on Your Server How to Use robots.txt Disallow to Block Crawlers and Protect Site Performance Content Security Policy (CSP) Headers – Complete Reference Guide Troubleshooting SSL Connection Errors: How to Fix HTTPS Issues How to Check and Repair a Database in phpMyAdmin 21 Reasons Your Website is Slow and How to Speed it Up Website Transfer Resources Ensure a Successful Website Transfer