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!

gzip enabled but not working

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

  1. Gojko

    Gojko Well-Known Member

    Joined:
    Nov 24, 2014
    Messages:
    83
    Likes Received:
    7
    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 Gojko, Oct 7, 2017
    Last edited: Oct 7, 2017
  2. Tearabite

    Tearabite Well-Known Member

    Joined:
    Nov 28, 2010
    Messages:
    76
    Likes Received:
    11
    Trophy Points:
    58
    Location:
    Southern California
    cPanel Access Level:
    Root Administrator
    Subscribing because i have a similar issue.
     
  3. Gojko

    Gojko Well-Known Member

    Joined:
    Nov 24, 2014
    Messages:
    83
    Likes Received:
    7
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,395
    Likes Received:
    1,951
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice