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 Selector and version specific php.ini settings

Discussion in 'EasyApache' started by foggle, Oct 3, 2016.

Tags:
  1. foggle

    foggle Registered

    Joined:
    Jun 3, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    EU
    cPanel Access Level:
    Root Administrator
    Hi, when using PHP Selector, does anyone know the correct way to make sure all versions of PHP used by all accounts have (eg) "enable_dl = off" and a good set of "disabled_functions".

    I've edited the one in WHM but that php.ini gets overwritten when PHP Selector is used I think.

    Many thanks in advance.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    667
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you confirm if you are referring to the "PHP Selector" option provided by CloudLinux, or the MultiPHP functionality in EasyApache 4?

    Thank you.
     
  3. foggle

    foggle Registered

    Joined:
    Jun 3, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    EU
    cPanel Access Level:
    Root Administrator
    Hi Michael, sorry yes I was, so probably shouldn't have asked that question here. When I posted I wasn't aware of MultiPHP or that PHP Selector was a CloudLinux feature.

    I edited all the /opt/alt/phpXX/etc/php.ini files (where XX refers to the PHP version number) and that works but is convoluted, there is maybe a better way.
     
  4. Bazinga

    Bazinga Active Member

    Joined:
    Aug 23, 2016
    Messages:
    26
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Ukraine
    cPanel Access Level:
    Website Owner
    You have found right way to modify default values. However, there is even more global way to do it - use /etc/cl.selector/global_php.ini file and values would be applied for all PHP versions.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    667
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page