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!

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,719
    Likes Received:
    98
    Trophy Points:
    328
    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. JacobPerkins

    JacobPerkins Well-Known Member

    Joined:
    May 2, 2014
    Messages:
    619
    Likes Received:
    96
    Trophy Points:
    103
    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,719
    Likes Received:
    98
    Trophy Points:
    328
    cPanel Access Level:
    Root Administrator
    Is there a hook or something for when this is submitted?
     
  4. JacobPerkins

    JacobPerkins Well-Known Member

    Joined:
    May 2, 2014
    Messages:
    619
    Likes Received:
    96
    Trophy Points:
    103
    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,719
    Likes Received:
    98
    Trophy Points:
    328
    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:
    44,363
    Likes Received:
    1,855
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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