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!

Something missing in PHP Configuration Editor?

Discussion in 'General Discussion' started by virtualreality, Sep 23, 2013.

  1. virtualreality

    virtualreality Well-Known Member

    Joined:
    Jan 18, 2008
    Messages:
    78
    Likes Received:
    1
    Trophy Points:
    58
    After upgrading to WHM 11.38.2 (build 6) Stable and updating Apache via EasyApache v3.22.14 recently, I've found in PHP Configuration Editor there is no zlib.output_compression_level. Is it normal or not?

    Before the upgrade/updating, zlib.output_compression_level was listed in the PHP Configuration Editor. I turned On zlib.output_compression, but now I cannot set a number in zlib.output_compression_level that is not there now.

    So I have to add zlib.output_compression_level in php.ini file via SSH into the server? Add it exactly under zlib.output_compression = On?

    There are three php.ini files associated with cPanel:

    /usr/local/lib/php.ini
    /usr/local/cpanel/3rdparty/etc/php.ini
    /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini

    In which php.ini should I add zlib.output_compression_level?

    Also, I guess cPanel system already has a default value for the zlib.output_compression_level. What is the default level number?

    Further, what is the best zlib.output_compression_level value in terms of not affecting server CPU loading, not degrading server performance, compressing data and speeding up php page rendering and loading?

    Any helpful reply is highly expected and appreciated!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    You should edit the following file:

    /usr/local/lib/php.ini

    The other files you listed are for cPanel's internal PHP only. The default value for "zlib.output_compression_level" is "-1" per:

    PHP: Runtime Configuration - Manual

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. virtualreality

    virtualreality Well-Known Member

    Joined:
    Jan 18, 2008
    Messages:
    78
    Likes Received:
    1
    Trophy Points:
    58
    Thank you Michael for helpful reply!
     
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