The server load is normal but web pages are loading very slow due to heavy web size therefore at that time, we can enable the web page compression for the hosting account. To enable the compress make sure that mod_deflate module.
To install the mod_deflate module refer the following setps.
Login in to the server as root user and run /scripts/easyapache script to recompile the Apache web server.
root@linux7802 [~]# /scripts/easyapache
Select the “Deflate” option available under the “Apache Built-in Modules” as soon as Apache recompiled login in to domain hosting account under which you are facing the problem.
For example the linux7802.com domain having the slow web page loading issue therefore we can create the new .htaccess file or edit the existing .htaccess file and add the following code.
#compress all text & html:
AddOutputFilterByType DEFLATE text/html text/plain text/xml
# Or, compress certain file types by extension:
<Files *.html>
SetOutputFilter DEFLATE
</Files>
Check the following file
root@linux7802 [/home/linux780/public_html]# cat .htaccess
#compress all text & html:
AddOutputFilterByType DEFLATE text/html text/plain text/xml
# Or, compress certain file types by extension:
<Files *.html>
SetOutputFilter DEFLATE
</Files>
We can also use the following code in the .htaccess file
#compress all text & html:
AddOutputFilterByType DEFLATE text/html text/plain text/xml
# Or, compress certain file types by extension:
<FilesMatch “\\.(js|css|html|htm|php|xml)$”>
SetOutputFilter DEFLATE
</Files>
After adding the above check the web page compression by using the following URL
http://www.gidnetwork.com/tools/gzip-test.php