I am trying to understand the difference between the php.ini and .user.ini in each folder. I read this document https://www.php.net/manual/en/configuration.file.per-user.php but still not very clear about that.
If I am understanding properly, php.ini under a folder, such as /home/alan/public_html/ will affect all subfolders such as /home/alan/public_html/test/. But .user.ini under /home/alan/public_html/ will only affect this folder, not its subfolders, is that correct?
Update
I am using cPanel MultiPHP Editor and check this doc https://docs.cpanel.net/cpanel/software/multiphp-ini-editor-for-cpanel/. It said "The Basic Mode section of this interface loads directive values from the php.ini file for your selected domain or home directory. Make your changes to the desired directives and click Apply. The system saves changes to the php.ini file, the user.ini file, and your .htaccess file.
So it seems both php.ini and user.ini can be folder specific.