Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

gzip enabled but not working

Discussion in 'General Discussion' started by DjordjeB, Oct 7, 2017.

  1. DjordjeB

    DjordjeB Well-Known Member

    Joined:
    Nov 24, 2014
    Messages:
    49
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Macedonia
    cPanel Access Level:
    Root Administrator
    two vps the same .htaccess newest whm/cpanel version EA4 enabled deflate but
    on first website don't work on second work.
    i tried 5 websites for gzip compression and all 5 show second vps(website) has working compression but first not.

    Any tip?
     
    #1 DjordjeB, Oct 7, 2017
    Last edited: Oct 7, 2017
  2. Tearabite

    Tearabite Active Member

    Joined:
    Nov 28, 2010
    Messages:
    29
    Likes Received:
    2
    Trophy Points:
    53
    Location:
    Southern California
    cPanel Access Level:
    Root Administrator
    Subscribing because i have a similar issue.
     
  3. DjordjeB

    DjordjeB Well-Known Member

    Joined:
    Nov 24, 2014
    Messages:
    49
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Macedonia
    cPanel Access Level:
    Root Administrator
    Well, after 2days searching solution i found this Compression not working
    and this in php.ini .user.ini
    Code:
    output_handler = Off
    zlib.output_compression = On
    zlib.output_handler = ob_gzhandler
    solve the problem i don't know why extra code is needed to work but it work, if someone from cpanel support saw this thread can answer why this bug is not fixed or something like that
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    That's the normal behavior, as PHP compression is enabled separately from mod_deflate. cPanel version 68 will add the zlib.output_compression option to the MultiPHP INI Editor feature in cPanel and WHM. Additionally, a note in the "Optimize Website" feature within cPanel will direct users on how to enable the zlib.output_compression option for PHP to help clarify this point.

    Thank you.
     
Loading...

Share This Page