Solved

Apache compress with mod_gzip not working

Posted on 2010-11-24
2
1,112 Views
Last Modified: 2012-05-10
I am running WAMP Server with Apache 2.0.58 on a Windows 2003 Server

I want to optimize the speed by using mod_gzip on all text and js files

I have used the instructions on:
http://nadeausoftware.com/node/33#Howtoenablefilecompression

I have downloaded ApacheModuleGzip.dll and saved it in:
C:\wamp\bin\apache\apache2.0.58\modules

I have then in the main httpd.conf file added the following:

LoadModule gzip_module modules/ApacheModuleGzip.dll

and

<IfModule mod_gzip.c>
   mod_gzip_on       Yes
   mod_gzip_dechunk  Yes
   mod_gzip_item_include file      \.(html?|txt|css|js|php|pl)$
   mod_gzip_item_include handler   ^cgi-script$
   mod_gzip_item_include mime      ^text/.*
   mod_gzip_item_include mime      ^application/x-javascript.*
   mod_gzip_item_exclude mime      ^image/.*
   mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

When I now restart WAMP it will not start
I cheked the error log for apache and it only shows:
----------------------------------------------------------------------------------------------------------
[Wed Nov 24 23:31:35 2010] an unknown filter was not added: DEFLATE
[Wed Nov 24 23:31:38 2010] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Wed Nov 24 23:31:38 2010] [notice] Child 6080: Exit event signaled. Child process is ending.
[Wed Nov 24 23:31:39 2010] [notice] Child 6080: Released the start mutex
[Wed Nov 24 23:31:40 2010] [notice] Child 6080: Waiting for 250 worker threads to exit.
[Wed Nov 24 23:31:54 2010] [notice] Child 6080: All worker threads have exited.
[Wed Nov 24 23:31:54 2010] [notice] Child 6080: Child process is exiting
[Wed Nov 24 23:31:54 2010] [notice] Parent: Child process exited successfully.
[Wed Nov 24 23:45:34 2010] [warn] The Alias directive in C:/wamp/alias/awstats.conf at line 1 will probably never match because it overlaps an earlier Alias.
[Wed Nov 24 23:45:34 2010] [warn] The Alias directive in C:/wamp/alias/awstats.conf at line 2 will probably never match because it overlaps an earlier Alias.
[Wed Nov 24 23:45:34 2010] [warn] The Alias directive in C:/wamp/alias/awstats.conf at line 3 will probably never match because it overlaps an earlier Alias.
[Wed Nov 24 23:45:34 2010] [warn] The Alias directive in C:/wamp/alias/awstats_show.conf at line 1 will probably never match because it overlaps an earlier ScriptAlias.
[Wed Nov 24 23:45:34 2010] [notice] Apache/2.0.58 (Win32) PHP/5.2.8 configured -- resuming normal operations
[Wed Nov 24 23:45:34 2010] [notice] Server built: Apr 29 2006 17:47:10
[Wed Nov 24 23:45:34 2010] [notice] Parent: Created child process 4524
[Wed Nov 24 23:45:34 2010] [warn] The Alias directive in C:/wamp/alias/awstats.conf at line 1 will probably never match because it overlaps an earlier Alias.
[Wed Nov 24 23:45:34 2010] [warn] The Alias directive in C:/wamp/alias/awstats.conf at line 2 will probably never match because it overlaps an earlier Alias.
[Wed Nov 24 23:45:34 2010] [warn] The Alias directive in C:/wamp/alias/awstats.conf at line 3 will probably never match because it overlaps an earlier Alias.
[Wed Nov 24 23:45:35 2010] [warn] The Alias directive in C:/wamp/alias/awstats_show.conf at line 1 will probably never match because it overlaps an earlier ScriptAlias.
[Wed Nov 24 23:45:35 2010] [warn] The Alias directive in C:/wamp/alias/awstats.conf at line 1 will probably never match because it overlaps an earlier Alias.
[Wed Nov 24 23:45:35 2010] [warn] The Alias directive in C:/wamp/alias/awstats.conf at line 2 will probably never match because it overlaps an earlier Alias.
[Wed Nov 24 23:45:35 2010] [warn] The Alias directive in C:/wamp/alias/awstats.conf at line 3 will probably never match because it overlaps an earlier Alias.
[Wed Nov 24 23:45:35 2010] [warn] The Alias directive in C:/wamp/alias/awstats_show.conf at line 1 will probably never match because it overlaps an earlier ScriptAlias.
[Wed Nov 24 23:45:35 2010] [notice] Child 4524: Child process is running
[Wed Nov 24 23:45:35 2010] [notice] Child 4524: Acquired the start mutex.
[Wed Nov 24 23:45:35 2010] [notice] Child 4524: Starting 250 worker threads.

--------------------------------------------------------------------------------------------------------------
The first DEFLATE error is because i tried DEFLATE first but could not get it to work.
I have deleted everything related. Serach DEFLATE several times and there is nothing in the config file. The wamp can run fine with this error, but maybe there is something when I try to add mod_gzip?
0
Comment
Question by:morten444
2 Comments
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
ID: 34212149
0
 

Author Comment

by:morten444
ID: 34285872
Hi Tanks
Took some time to figure out but now resolved
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now