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.

EA4 - custom php.ini changes

Discussion in 'EasyApache' started by sparek-3, Oct 30, 2015.

  1. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Is the MultiPHP INI Editor in cPanel 11.52 and EA4 suppose to work?

    It doesn't seem to be working for me on a test system.
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hello!

    The INI editor is strictly a file editor. Getting PHP to apply that specific INI is still left to the administrator and user to configure (suPHP, etc).

    I hope this helps!
     
  3. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Is there a hook or something for when this is submitted?
     
  4. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    There are no hooks around INI calls right now, however you can write a script to make the appropriate API calls and then do the necessary system calls to make your changes happen.
     
  5. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    I found that you can use Api2::LangPHP::php_ini_set_user_content in a hook to get the submitted information.

    Is there a way to define what PHP directives are user configurable in user's cPanel?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can't add or remove the directives found under "Basic" mode in "cPanel >> MultiPHP INI Editor". However, "Editor" mode allows to change directives that are not listed under "Basic" mode.

    As far as PHP itself, you can review the "Changeable" column on the following PHP page to determine if it's possible to configure a directive globally or for individual accounts:

    PHP: List of php.ini directives - Manual

    Thank you.
     
Loading...

Share This Page