Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'EasyApache' started by MikeStar9, Apr 7, 2017.

Tags:
  1. MikeStar9

    MikeStar9 Registered

    Joined:
    Apr 7, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. MikeStar9

    MikeStar9 Registered

    Joined:
    Apr 7, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
    #3 MikeStar9, Apr 7, 2017
    Last edited: Apr 7, 2017
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page