Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Apache compress with mod_gzip not working

Posted on 2010-11-24
2
Medium Priority
?
1,129 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 2000 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

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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 …
Suggested Courses

636 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