What do I need to get gzip compression?

13 posts / 0 new
Last post
#1 Thu, 06/09/2016 - 21:05
juicyj
juicyj's picture

What do I need to get gzip compression?

I am not a tech person myself and I am trying to learn the system as much as I can. So I need to add gzip to the server so the files are compress and can load faster. There is the .htaccess file in the stats folder, but that's the file path to only a specific virtual server. I need to enable this globally, how can I do this?

Fri, 06/17/2016 - 05:39
unborn
unborn's picture

HI, I guess you resolved this already but if not.. you need to go webmin - servers - apache - modules and enable desired gzip there. then you will need to restart apache and gzip should be applied right a way

Configuring/troubleshooting Debian servers is always great fun

Tue, 01/03/2017 - 03:05
oneearth

i would like to enable gzip compression on webmin/virtualmin also but i don't see the modules option.

i have :

Webmin > Servers > Apache Webserver > Select a virtual server > get all kinds of virtual server options but nothing about modules.

Any help would be appreciated.

Tue, 01/03/2017 - 04:30 (Reply to #3)
unborn
unborn's picture

Hi, you looking in wrong place.. you need to go webmin > servers > apache > modules...the module you looking for is called deflate.

Configuring/troubleshooting Debian servers is always great fun

Tue, 01/03/2017 - 18:45
oneearth

hmmm, i'm not sure why, but i don't see > webmin > servers > apache.

i only see > webmin > servers > Apache Webserver

i am running the latest Webmin 1.830-1

Tue, 01/03/2017 - 18:48
oneearth

there's something close to what you're taking regarding modules at > Webmin > Webmin Configuration > Webmin Modules

but when i click "install from standard module from www.webmin.com", i don't see a deflate module in the subsequent list.

Tue, 01/03/2017 - 18:49
oneearth

i'm on centos 7, so i don't know if webmin has such a different gui for different linux flavours.

Tue, 01/03/2017 - 19:16
Diabolico
Diabolico's picture

Strange, mod_deflate is part of the core Apache installation so you should check why is missing. Did you upgrade PHP on your server? Anyway, run this "apachectl -t -D DUMP_MODULES |grep deflate" and post the result.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Tue, 01/03/2017 - 21:54
oneearth

yes i did upgrade php. i have php 5.4, 5.6, 7.0 installed

[root@server ~]# apachectl -t -D DUMP_MODULES |grep deflate
deflate_module (shared)
[root@server ~]#
Wed, 01/04/2017 - 12:01
Diabolico
Diabolico's picture

How you can see deflate_module (shared) is installed and active. If you have a problem to make it work it means mod_deflate is not configured properly or the problem is somewhere else.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Wed, 01/04/2017 - 16:35
oneearth

i think that if i try to follow your step in post #2, i get the result in post #3.

i'm not sure why i'm not seeing what you're seeing.

Wed, 01/04/2017 - 21:16
oneearth

since I haven't much luck using virtualmin for this, for centos 7, i found this link:

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-mod_deflate-on-centos-7

created the mod_deflate.conf file and put this in it:

[root@server ~]# vi /etc/httpd/conf.d/mod_deflate.conf
<filesMatch "\.(js|html|css)$">
    SetOutputFilter DEFLATE
</filesMatch>

[root@server ~]# systemctl restart httpd

that seems to work.

Mon, 07/01/2019 - 15:06
paulfromsurrey

I have same issue try to enable deflate mod

All the files are where they suppose to but still not working

These steps were followed

https://www.digitalocean.com/community/tutorials/how-to-install-and-conf...

Do I needs to check any files in apache2

Or i needs to add in httpd any line

Thanks

Paul Pcpluscomputing.com

Topic locked