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.

PHP-FPM WHM 60 - gzip and deflate stop working

Discussion in 'EasyApache' started by Richard Edwards, Oct 28, 2016.

  1. Richard Edwards

    Joined:
    Mar 7, 2016
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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,
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,163
    Likes Received:
    1,294
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. Richard Edwards

    Joined:
    Mar 7, 2016
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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


     
  4. IndicHosts.net

    IndicHosts.net Active Member

    Joined:
    Mar 11, 2006
    Messages:
    27
    Likes Received:
    1
    Trophy Points:
    153
    cPanel Access Level:
    Root Administrator
    mod_deflate works fine with suPHP EA4 PHP-FPM on PHP 5.6
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,163
    Likes Received:
    1,294
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    #5 cPanelMichael, Feb 1, 2017
    Last edited: Aug 9, 2017
Loading...

Share This Page