MultiPHP INI Editor file name .user.ini instead of php.ini

MikeStar9

Registered
Apr 7, 2017
2
0
1
US
cPanel Access Level
Root Administrator
How does MultiPHP editor determine the file name for the inis?

When I'm in cpanel->MultiPHP INI Editor->Editor Mode it saves the file as php.ini

Is it possible to save as .user.ini instead of php.ini?

cpanel 62.0.20
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello,

In cPanel 62, when you save changes in cPanel's MultiPHP INI Editor interface (Home >> Software >> MultiPHP INI Editor), the changes save to both the php.ini and user.ini files.

This is to help account for any future changes to the PHP handler or version associated with the account.

Thank you.
 

MikeStar9

Registered
Apr 7, 2017
2
0
1
US
cPanel Access Level
Root Administrator
Thanks!

I think what confused me was that it didn't make two identical ini.s The shorter php.ini matched exactly what was in the multi editor field. But in the longer older .user.ini, it only went in to update existing values, not replace the entire file.

I deleted that other file, so hopefully that should match now after saving again.

One last question, should PHP-FPM always check doc_root path for inis?

In my case, it seems to only scan
"Scan this dir for additional .ini files" at
/opt/cpanel/ea-php70/root/etc/php.d
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
One last question, should PHP-FPM always check doc_root path for inis?

In my case, it seems to only scan
"Scan this dir for additional .ini files" at
/opt/cpanel/ea-php70/root/etc/php.d
Hello,

I believe this relates to an internal case (CPANEL-11563). The case is open to address an issue where changes made via cPanel's MultiPHP INI Editor do not reflect within PHP-FPM. I'll update this thread with more information on the status of the case as it becomes available.

Thank you.