Enable compression in apache for improve performance ?

Enabling compression in Apache can significantly reduce the size of data transferred between the server and clients, leading to faster page load times. The most common method for achieving compression in Apache is by using the mod_deflate module. Hereā€™s how you can enable compression with examples:

Step 1 go to below path


And open below path


And do uncomment as per below

LoadModule deflate_module modules/mod_deflate.so

Next go to virtual host file and add below data

LoadModule deflate_module modules/mod_deflate.so
<VirtualHost *:80>
    ServerName example.com
    LoadModule deflate_module modules/mod_deflate.so
    AddOutputFilterByType DEFLATE text/html text/css application/javascript
    <Directory  "/opt/lampp/htdocs/wizbrand/wz-siteadmin-ms/public">
            Options Indexes FollowSymLinks
            AllowOverride All
            Allow from all
            Require all granted

Next restart your apache server using below command

sudo /opt/lampp/lampp restart

Thanks for learning šŸ‘šŸ‘

Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.

Related Posts

Implementation of opcode in apache Server for Improve Performance ?

What is opcode ? Opcode in Apache is a way to improve the performance of web applications by caching the compiled bytecode of PHP scripts. When a…

List of Performance Checklist for Apache

What is Apache ? Apache, in the context of web hosting and server software, usually refers to the Apache HTTP Server. Apache is designed to run on…

List of Checklist to improve MySql Query Performance

MySQL is a free and open-source relational database management system (RDBMS). It is one of the most popular database systems in the world, used by millions of…

Top Security Checklist for MySql ?

In this tutorial i have go to learn what are the top checklist of mysql security so lets follow below i have mentioned security checklist for mysql….

Command ‘mysql’ not found in Ubuntu ?

In this tutorial im going to solve this issue ,The error message “Command ‘mysql’ not found” means that your system cannot find the mysql command. This can…

How to Set a new root password in Ubuntu ?

In this tutorial im going to learn how to set root password in ubuntu lets go to solve. 1st step Just go to Log in to the…

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x