Enable GZIP compression for Magento 2 Website on Apache/Linux to Make it Load Faster
What is GZIP ? Gzip is a data compression algorithm capable of compressing and decompressing files quickly. How can enabling GZIP can make a website load faster? Websites are getting larger and carry a lot of content that can be compressed and save bandwidth during transmission over the networks. Co...
Amila Rajapaksha is the CEO and Managing Director of Mobiz International (Pvt) Ltd, a web design and development company based in Gampaha, Sri Lanka. Since 2010 he has helped businesses across Sri Lanka and overseas launch fast, search-friendly websites and online stores — working hands-on with WordPress, Magento and custom Laravel builds, and the SEO that makes them rank.
What is GZIP ?
Gzip is a data compression algorithm capable of compressing and decompressing files quickly.How can enabling GZIP can make a website load faster?
Websites are getting larger and carry a lot of content that can be compressed and save bandwidth during transmission over the networks. Compressing large text format files like javascript and css can save a lot of bandwidth thus improving loading speeds.Using GZIP on a website
On Apache web server gzip compression is utilized to compress the outgoing traffic via mod_deflate. To use GZIP on a website mod_deflate must be installed, enabled and loaded with Apache. You can check of mod_deflate status by running below command in the linux terminal. >sudo httpd -M | grep deflate if mod_deflate is installed and enabled, you should see deflate_module (shared).Related Articles
AI Personalization for WooCommerce | Sri Lankan Retailers Guide
Bridging Continents: The New Frontier for Sri Lankan Retailers
How to Retain Customers in Sri Lanka's Booming Ecommerce Landscape: Proven Strategies for 2026
Discover Sri Lanka-specific strategies to retain ecommerce customers amid a $2.65B market boom. Learn mobile-first tactics, trust-building, and hyperlocal tips for platforms like WooCommerce and Shopify in 2026.
Enable or Disable Magento 2 Maintenance Mode using CLI / Command Prompt or Files
What is the magento maintenance mode ?When Magento is in maintenance mode, visitors see a Service Temporarily Unavailable message in their web browsers instead of the store. However, authorized IP addresses can still view the store normally.You can enable maintenance mode using two methods.How to en...
Magento 2 How to reset admin password using CLI / Command Prompt / Terminal in Linux
Let's see how we can reset Magento 2 admin password in Linux using CLI / command prompt or terminal.Getting the cryptographic saltMagento 2 passwords are stored after scrambling with the cryptographic salt which is defined in the app\etc\env.phpSo first we need to copy that.open the file app\etc\env...