How-to disable users php.ini and user.ini files

mindnetcombr

Well-Known Member
Sep 16, 2004
70
5
158
Hello

EA4, users sometimes upload php.ini and user.ini - and cause issues.

How to disable server wide the users php.ini and user.ini ?

Using SUPHP.

Thank
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Hello,

Those files are generated automatically as part of the MultiPHP INI Editor functionality. This allows customers to edit their PHP configuration options while ensuring the changes remain applied if the PHP handler changes in the future. You can disable the "MultiPHP INI Editor" feature in "WHM >> Feature Manager" for the feature lists associated with your accounts if you want to prevent customers from making those changes. Additionally, if you want to prevent custom user.ini files from working, you may find this third-party URL helpful:

How to disable custom user.ini files in public_html for Easyapache 4 - Bobcares

Note there's a slight change to this behavior once you upgrade to cPanel version 66:

EasyApache 4 PHP configuration changes
We removed the use of local.ini files in EasyApache 4. WHM's MultiPHP INI Editor interface (Home >> Software >> MultiPHP INI Editor) now saves changes to the php.ini file rather than the local.ini file.
Thank you.