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.

Want to edit the php.ini file directly...

Discussion in 'General Discussion' started by Mr Goodie2Shoes, Feb 7, 2012.

  1. Mr Goodie2Shoes

    Joined:
    Sep 21, 2011
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    so... I found configuring the PHP Configuration from WHM is pretty messy... can I directly modify the php.ini file?
     
  2. aiden_g_1234

    aiden_g_1234 Active Member

    Joined:
    Feb 7, 2012
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    You can edit it Via SSH

    Code:
    nano /usr/local/lib/php.ini
     
  3. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Any modifications you make by editing the php.ini file by hand will be lost when cPanel or PHP is updated (as in, by running EasyApache). Use the editor in the WebHost Manager. It is the only way to preserve custom changes.
     
  4. Mr Goodie2Shoes

    Joined:
    Sep 21, 2011
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    thanks... but I already know that :P
    thanks... thats what I wanted to know...
     
  5. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
  6. DrLightman

    DrLightman Registered

    Joined:
    Apr 10, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Any idea on how to add new lines through the PHP Configuration Editor? It seems possible only to modify existing ones, not add new ones. I need to add this line:

    Thank you.
     
  7. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    623
    Likes Received:
    6
    Trophy Points:
    18
    same as DrLightman, i need to add: suhosin.executor.func.blacklist
    but i dont see im able to add new line from WHM?
    Been said that changes will be overwriten but no alternative solution provided..
     
Loading...

Share This Page