Skip to main content

Understanding the .user.ini file

Comments

2 comments

  • Hi,

     

    1. creating local (domain) php.ini files is no longer the procedure, we now crerate a .user.ini file for any php settings we only want to effect the local domain. (assuming that directive is enabled in whm server config)  (example allow_url_fopen

     

    PHP settings are managed by directives in the php.ini, .user.ini and .htaccess files. Depending on the PHP handler in-use, one of these files might be used but not another one. It is generally recommended to use the MultiPHP INI Editor in cPanel to apply PHP configuration changes as that will ensure the changes are applied to the correct files.

     

    Second question:  Are all of these available (can be set) php 8.2 and php 8.3 for using the .user.ini file

     

    Many of those directives can be configured with a .user.ini, but some of them can only be changed on the server level within the WHM MultiPHP Manager. For reference, the PHP directives that have the  INI_SYSTEM value can only be changed in the WHM MultiPHP Manager and would have no effect if you tried to update the values in the .user.ini or the cPanel MultiPHP Manager:

     

    https://www.php.net/manual/en/ini.list.php

     

    1
  • durangod

    Thanks William,  appreciate the reply and the link, great link.  I did not realize there were so many directives.  Have a great weekend :)

    0

Please sign in to leave a comment.