?
Solved

Apache compress with mod_gzip not working

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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.
What You Need to Know when Searching for a Webhost Provider
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…
Suggested Courses

752 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