Solved

Apache compress with mod_gzip not working

Posted on 2010-11-24
2
1,123 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 62

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
What You Need to Know when Searching for a Webhost Provider
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

688 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