Gzip compression is a simple and effective way to save bandwidth and speed up your website. The Optimize Website feature is used to enable Gzip compression in cPanel.
However, in some cases, this feature may not be visible. There are two potential situations where this option may be missing - when it is not enabled in the feature list being used by your cPanel account and when the mod_deflate Apache module is not installed.
Here we cover two methods to install the mod_deflate module - through Root WHM and via command line.
Related Articles
Enable Gzip Compression in cPanel
Optimize Website Icon Missing in cPanel
Install mod_deflate in WHM
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- Log into Root WHM
- Navigate to Software -> EasyApache 4
- Click the Customize button in the Currently Installed Packages section
- Select Apache Modules
- Type "deflate" into the search box
- Click the toggle button to the right of mod_deflate so that it turns blue and the word "Install" appears
- Select Review
- Scroll to the bottom of the page and click on the Provision button
- Wait for the provisioning process to complete
Install mod_deflate via Command Line
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
NOTE: This is an alternative to the above solution and is not required if you've already completed the previous steps.
- Access the server via SSH as the root user or using the Terminal in your Root WHM
- Run the following command:
yum -y install ea-apache24-mod_deflate
- Wait for the installation to complete
Comments
0 comments
Article is closed for comments.