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.

WHM Allow all accounts own php.ini

Discussion in 'General Discussion' started by TheUserG, Aug 18, 2015.

Tags:
  1. TheUserG

    TheUserG Member

    Joined:
    Aug 18, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Paris
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm WHM root administrator and i want to allow all accounts to have their own php.ini file and php configuration page on cPanel. How to do it on WHM ?

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Accounts are allowed their own php.ini files by default if you are using suPHP as your PHP handler. PHP handlers are configured at:

    "WHM >> Service Configuration >> Configure PHP and SuEXEC"

    Thank you.
     
  3. TheUserG

    TheUserG Member

    Joined:
    Aug 18, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Paris
    cPanel Access Level:
    Root Administrator
    Yes i'm using suPHP but on cPanel accounts i can't change php version memory etc..
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,707
    Likes Received:
    658
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Right, you can't change the PHP version without the use of a third-party plugin (e.g. PHP Selector with Cloud Linux). Support for this is planned for EasyApache 4, but it's currently not ready for production machines. You can change individual PHP values by copying /usr/local/lib/php.ini to the account's public_html directory and making the changes to the local file.

    Thank you.
     
  5. dorac

    dorac Member

    Joined:
    Jun 7, 2013
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    South Africa
    cPanel Access Level:
    Root Administrator
    This has changed now, any idea where I can find it as of version 60+?

    EDIT: nevermind. Found the answer here:
    How to Customize PHP Directives - cPanel Knowledge Base - cPanel Documentation
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

Share This Page