Gzip Not Working After Upgrade.

We upgraded from Cs-cart v4.3.6 to v4.5.2sp2 and also upgraded from php5.6.9 to 7.0.

Now we can't get gzip to work..

Oh yeah we also went from Easy Apache 3 to 4...

.htaccess is all good

and mod_deflate is on

-------------
root@server2 [~]# httpd -M | grep deflate
deflate_module (shared)
root@server2 [~]#
-------------

Anyone have any ideas...

We upgraded from Cs-cart v4.3.6 to v4.5.2sp2 and also upgraded from php5.6.9 to 7.0.

Now we can't get gzip to work..

Oh yeah we also went from Easy Apache 3 to 4...

.htaccess is all good

and mod_deflate is on

-------------
root@server2 [~]# httpd -M | grep deflate
deflate_module (shared)
root@server2 [~]#
-------------

Anyone have any ideas...

I you use multi php, try to add this to your php.ini file:

output_handler = Off
zlib.output_compression = On
zlib.output_handler = ob_gzhandler

or in cPanel add this to:

Service Configuration → Apache Configuration → Include Editor → Pre Virtualhost Include → All Versions

# Enable GZIP Compression.

SetOutputFilter DEFLATE

# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html

Netscape 4.06-4.08 have some more problems

BrowserMatch ^Mozilla/4.0[678] no-gzip

MSIE masquerades as Netscape, but it is fine

BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48

the above regex won’t work. You can use the following

workaround to get the desired effect:

BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

Don’t compress images

SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary

# Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary

Got it fixed.. Needed to follow these steps...

https://forums.cpanel.net/threads/have-gzip-compression-enabled-for-accounts-on-the-server-including-newly-created-accounts.573551/