mod_gzip build failing

8 points

Hello,

I just tried to rebuild Apache so I could enable mod_gzip. The build went fine apart from adding mod_gzip. This is the error:

Fetching http://httpupdate.cpanel.net/buildapache/1/mod_gzip-1.3.26.1a.tar.gz (0)....@74.200.65.162......connected......receiving...2%...5%...8%...11%...14%...17%...20%...23%...26%...29%...32%...35%...38%...41%...44%...47%...50%...53%...56%...59%...62%...65%...68%...71%...74%...77%...80%...83%...86%...89%...92%...95%...98%...100%......Done
Untarring mod_gzip....Done
 
make [@mod_gzip-1.3.26.1a]...(-j 8).... Done
 
cc1: error: unrecognized command line option "-Wall,-O3,-fomit-frame-pointer,-pipe"
apxs:Break: Command failed with rc=1
make: *** [build] Error 1
 
make [@mod_gzip-1.3.26.1a]...(install).... Done
 
make: *** [install] Error 1

It added this to httpd.conf:

<IfModule mod_gzip.c>
mod_gzip_on yes
 
mod_gzip_send_vary yes
 
mod_gzip_dechunk yes
mod_gzip_keep_workfiles No
mod_gzip_temp_dir /tmp
mod_gzip_minimum_file_size  1002
mod_gzip_maximum_file_size  0
mod_gzip_maximum_inmem_size 1000000
 
mod_gzip_item_include file "\.htm$"
mod_gzip_item_include file "\.html$"
mod_gzip_item_include mime "text/.*"
mod_gzip_item_include file "\.php$"
mod_gzip_item_include mime "jserv-servlet"
mod_gzip_item_include handler "jserv-servlet"
mod_gzip_item_include mime "application/x-httpd-php.*"
mod_gzip_item_include mime "httpd/unix-directory"
 
mod_gzip_item_exclude file "\.css$"
mod_gzip_item_exclude file "\.js$"
mod_gzip_item_exclude file "\.wml$"
</IfModule>

Running: WHM 11.2.0 cPanel 11.11.0-R16983
CENTOS Enterprise 5 i686 - WHM X v3.1.0
Apache 1.3.39
PHP 5.2.4

Does anyone know how to fix this?

Created by Anonymous 13 weeks 3 days ago
  Tags:

Answer(s):

-2 points

don't compile mod gzip with apache using easyapache.

install it separately by downloading source file and add as apache module.

Created by Anonymous
2 points

I have done now. I had the same problem though.

It seems the fix is to change this line in the makefile:

$(APXS) -Wc,-Wall,-O3,-fomit-frame-pointer,-pipe -c mod_gzip.c mod_gzip_debug.c mod_gzip_compress.c -o mod_gzip.so

To:

$(APXS) -Wc "-Wall -O3 -fomit-frame-pointer -pipe" -c mod_gzip.c mod_gzip_debug.c mod_gzip_compress.c -o mod_gzip.so

It's working fine after that.

Created by Anonymous
-2 points

http://www.sitepoint.com/article/mod...e-apache-2-0-x

Perhaps mod_gzip is only for Apache 1.3?

Created by Anonymous
0 points

Use mod_deflate if you are on Apache 2.x.

Created by Anonymous

Post your Answer

  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Links to specified hosts will have a rel="nofollow" added to them.

More information about formatting options