kwc.org Photos Spare Cycles MythBusters

mod_gzip on Windows

This one was a difficult one to Google through (kept finding old 1.3 Apache stuff), even though the process itself is pretty quick, so I thought I'd record what I did to get mod_gzip running on Apache 2.0.48 for Windows.

1) Downloaded the zip file with the built DLL from Index of /development/apache/httpd-2.0/win32/modules
2) copied mod_gzip.so into my Apache modules directory
3) copied the settings from my_cfg.txt (contained in the zip file) into my httpd.conf
4) Got a copy of zlib.dll. Placed this in my apache bin directory.
5) Restarted the server

Web Page Analyzer verified that gzip was working and also reports that I'm about 50K lighter on the HTML (20K versus 70K).

TrackBack

Listed below are links to weblogs that reference mod_gzip on Windows:

» mod_gzip from MoonJihad's Page of Nothingness
I finally got around to installing mod_gzip here, so pages here should load a little faster for those on dialup(providing you are using a decent browser). Feel free to add a comment here if it does a significant difference for... [Read More]

Comments (3)

Brian Stanfill:

Here's to head-butting the server (cheers).

With my current configuration, Apache successfully starts and recognizes itself as Apache/2.0.53 (Win32) PHP/5.0.4 mod_gzip/2.0.50.

However, when I run tests (http://leknor.com/code/gziped.php) on my site with many different file types... not a single file type returns as being compressed.

My only guess is that I have inadequately configured the Apache httpd.conf file for the mod_gzip module.

I copied the my_cfg.txt sample configuration (but had to make a change because it specified <IfModule mod_gzip.c> and the module being loaded is mod_gzip.so).

Even after trying many differnt "sample" configurations from various websites, no files show as compressed.

Where should I start for correctly configuring mod_gzip to compress the content on my webserver? I expect to compress (htm, html, php, js, css).

Thanks!

Brian Stanfill
Palmer, Alaska

bp:

To Brian Stanfill: You should probably change back what you changed. Yes, the file may be mod_gzip.so, but the IfModule line was written correctly. I think the identifiers are pulled via macro at compile time.... whatever it is, if you want to conditionally load mod_gzip, you'd better use a tag in your config.

Alternately, don't use an tag at all, but your server may not start up if you ever remove the mod_gzip.so file.

kyle:

This is the only thing on the internet, which I Have found, that actually tells how to install Mod_gzip.

All of the other ones had missing information, and were making it harder than it really was. within a few minutes after reading this, my windows NT apache server now has dynamic html compression.

Post a comment


related entries.

what is this?

This page contains a single entry from kwc blog posted on February 4, 2004 12:17 AM.

The previous post was google, you're _too_ good to me.

The next post is Personal update.

Current entries can be found on the main page.