The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Website Loading Time G_ZIP Compression

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #26887

    I am having problems trying to use Gzip on my server.
    I would like to combine all my javascript files into one to help with load time.
    I went ahead and downloaded Gzip and uploaded to my server.
    I checked to see if my server enables gzip and zlib and it does.
    I then added:

    php_flag zlib.output_compression On

    to my .htaccess file,
    which I found directions for here:
    When I did that I get an internal server error.
    I called my hosting company and she said that php_flag zlib.output_compression On is the wrong syntax.
    She didn’t really sound like she knew what she was talking about though.
    Can anyone help me with how to do this?

    I also found this code:


    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file .(html?|txt|css|js|php|pl|jpg|png|gif)$
    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.*

    that can be added to my.htaccess file and seems to be pretty straight forward, but It looks for mod_gzip.c on my server and I do not have that anywhere(I looked in the Gzip files that I have uploaded to my server). When added to my .htaccess file, I get no errors, so I would love to use this if I had that mod_gzip.c
    I’m on a linux server with PHP Version 5.2.11.

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.