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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change php.ini via ssh - cPanel 68 - EA4

Discussion in 'General Discussion' started by musioc, Nov 12, 2017.

  1. musioc

    musioc Well-Known Member

    Joined:
    Aug 4, 2011
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    66
    Hello
    We have many cpanel servers and we want to automate some operations like changing php.ini for all servers at one.
    We can do this via ssh and we can see changes in MultiPHP INI Editor in whm
    But they don't apply while we click save button.
    Please let me know what secret is behind save button?!

    Regards
     
  2. web-project

    web-project Well-Known Member

    Joined:
    Nov 23, 2007
    Messages:
    52
    Likes Received:
    4
    Trophy Points:
    58
    Via ssh you be able to change the php.ini and restart the Apache webserver. How long have you run shared hosting? as any system administrator know how to edit or just add a line of text into file via ssh and how to restart the services on server - don't even need to click Save button on multiple servers!
     
  3. musioc

    musioc Well-Known Member

    Joined:
    Aug 4, 2011
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    66
    Please test it after upgrade to easy apache 4
    After that, changing php.ini via ssh is not applied to websites. (Old values shown in phpinfo(); )
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,715
    Likes Received:
    1,705
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know the full steps you are taking to reproduce the issue (including the specific commands)?

    Thank you.
     
Loading...

Share This Page