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

/opt/lampp/etc

And open below path

httpd.conf

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
   </Directory>
</VirtualHost>

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

How to change MySQL password in Ubuntu ?

In this tutorial we’re going to share how to change MySQL Password in Ubuntu in very easy way. Just go to lampp and puto below code Then…

“Unable to locate package” while trying to install packages with APT

When I try to install any package through the command line, I get an error E: Unable to locate package composer. Error :- Solutions:- Now installed successfully.

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….

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