PHP-FPM WHM 60 - gzip and deflate stop working

Mar 7, 2016
20
1
3
Bristol
cPanel Access Level
Root Administrator
Hi,

I have updated to WHM 60 on my server - all good.

I have sites running PHP56 and PHP7.

I added PHP-FPM pools on to my own site to see how well it works and how much work is involved and I came across this issue, I was wondering if anyone else has?

So I was using google insights on a clients site and thought I'd check mine again - a nice 99/100.

I then went and set up PHP-FPM on my site, followed steps, it began being server by PHP-FPM and my load time increased a tiny fraction. All good.

Problem is, I checked pagespeed insights again and saw it dropped to 87/100. The reason? It was claiming my site was not being gzipped any more.

The htaccess still has all the same gzip and deflate code in it to work.

I then removed the PHP-FPM pools, and suddenly my gzip was working again.

Is there missing configuration in the guide? Or do I now need to add my gzip/deflate into my conf files - another non-UI step to set up PHP-FPM.

Thanks,
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello,

Could you verify if the PHP handler is configured as "CGI" for your PHP versions via the "PHP Handlers" tab in "WHM Home » Software » MultiPHP Manager"?

If so, internal case EA-5367 is open to address an issue where Mod_Deflate isn't working when CGI is set as the PHP handler in EasyApache 4. I'll update this thread with more information on the status of that case as it becomes available. In the meantime, you can try switching the handler to "suPHP" to verify if the issue persists.

Thank you.
 
Mar 7, 2016
20
1
3
Bristol
cPanel Access Level
Root Administrator
Hi Michael,

The handler is suPHP.

Could it be that using PHP-FPM with suPHP triggers the same issue as when using CGI handler?

Can you please set up suPHP with EA4 on PHP56 and configure PHP-FPM as per your guides. You will see deflate and/or gzip do not work.

Or should I submit this as a bug before someone has confirmed it?

Thanks,
Richard


Hello,

Could you verify if the PHP handler is configured as "CGI" for your PHP versions via the "PHP Handlers" tab in "WHM Home » Software » MultiPHP Manager"?

If so, internal case EA-5367 is open to address an issue where Mod_Deflate isn't working when CGI is set as the PHP handler in EasyApache 4. I'll update this thread with more information on the status of that case as it becomes available. In the meantime, you can try switching the handler to "suPHP" to verify if the issue persists.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello,

To update, there's an additional thread where this is discussed:

Compression not working

Updates regarding EA-5367 will be posted to the above thread.

Thank you.
 
Last edited: