Change php.ini via ssh - cPanel 68 - EA4

musioc

Well-Known Member
Aug 4, 2011
118
0
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
 

web-project

Well-Known Member
Nov 23, 2007
67
11
58
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?!
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!
 

musioc

Well-Known Member
Aug 4, 2011
118
0
66
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!
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(); )
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
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.
Hello,

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

Thank you.