Boosting Your WordPress Site’s Performance By Enabling GZIP Compression
Ever heard of GZIP? It is a simple software application that compresses/decompresses files based on an algorithm named DEFLATE. It works by finding similar strings in a text file and replacing them temporarily to make the overall file size smaller which would drastically improve the performance of your website. The algorithm perfectly works with CSS and HTML filetypes which typically contain repetitions of whitespaces, tags, and strings.
Enabling GZIP compression on your WordPress site is straightforward. You do not need to tamper your .htaccess file or download any WordPress plugin. The steps below explain how to enable GZIP compression on a WordPress site hosted in Bluehost.
- Enabling PHP5 (FastCGI)
- Navigate to Bluehost.com and login to the Control Panel.
- On the Control Panel main screen, click on PHP Config under Software/Services.
- Select PHP5 (FastCGI) and click “Save Changes”.
- Editing php.ini file and enabling compression
- On the Control Panel main screen, click on File Manager under File Management.
- Select the root directory of your site and click GO.
- On the File Manager window, navigate to public_html folder.
- Left-click on php.ini file and select Edit.
- Search for the following lines:
zlib.output_compression = Off
zlib.output_compression_level = -1
- Replace with:
zlib.output_compression = On
zlib.output_compression_level = 1
- Save the changes and close the file.
- Verify GZIP compression is working by analyzing the performance of your site using GTMetrix. You should see the green results in the screenshot below.
Latest posts by Ihab Sarieddine (see all)
- How To Apply Earned Value Analysis in Microsoft Project 2013 - October 25, 2014
- How To Create A Subscription Popup With ‘Thank You’ Page For Your Blog - July 19, 2014
- 8 Critical Techniques For Optimizing Google Adsense - July 1, 2014
- Agile Methodologies: Lean Software Development (Part 1) - June 22, 2014
- 8 Ps of Vision and Strategy - June 17, 2014