Solved

Apache compress with mod_gzip not working

Posted on 2010-11-24
2
1,118 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 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to use a switch statement with heredoc 11 33
jQuery force form POST 7 46
Reference key in foreach loop 4 21
Generate PDF from MySQL using PHP 3 22
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

860 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