The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fix for installing mod_gzip

Discussion in 'General Discussion' started by phoenixdarkdirk, Aug 13, 2007.

  1. phoenixdarkdirk

    Joined:
    Feb 23, 2003
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    While installing Apache 1 / PHP5 on a brand new CentOS 5 11.8.0-C16295 server, I had problems installing mod_gzip. Not sure when this problem started, because I've installed it on other servers with no problems. Anyway, if you're getting the following error during easyapache:
    Code:
    cc1: error: unrecognized command line option "-Wall,-O3,-fomit-frame-pointer,-pipe"
    
    Apache will compile just fine, but the mod_gzip object won't compile. To compile it manually:
    Code:
    cd /home/cpapachebuild/buildapache/mod_gzip-1.3.26.1a
    /usr/local/apache/bin/apxs -Wc,"-Wall -O3 -fomit-frame-pointer -pipe" -c mod_gzip.c mod_gzip_debug.c mod_gzip_compress.c -o mod_gzip.so
    /usr/local/apache/bin/apxs -A -i mod_gzip.so
    
    The mod_gzip object will be installed and all you'll need to do is uncomment the LoadModule/AddModule lines in your httpd.conf. Hope this helps somebody!
     
  2. colorcloud

    colorcloud Active Member

    Joined:
    Aug 14, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
  3. boatdesign

    boatdesign Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    16
    Thank you very much for this fix. Much appreciated.
     
Loading...

Share This Page