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?
don't compile mod gzip with apache using easyapache.
install it separately by downloading source file and add as apache module.
I have done now. I had the same problem though.
It seems the fix is to change this line in the makefile:
To:
It's working fine after that.
http://www.sitepoint.com/article/mod...e-apache-2-0-x
Perhaps mod_gzip is only for Apache 1.3?
Use mod_deflate if you are on Apache 2.x.
Post your Answer