Skip to main content

MultiPHP INI Editor Values Not Saved for PHP-FPM Sites

Comments

3 comments

  • cPanelMichael
    Hello,
    Specifically, when I changed upload_max_filesize, my change is saved in the MultiPHP INI Editor for PHP 7, and shows in /opt/cpanel/ea-php70/root/etc/php.ini, but wasn't reflected on a PHPINFO test page on a PHP-FPM site, which still showed the old value. A non-PHP-FPM site running the same version of PHP did show the correct, updated value of upload_max_filesize.

    It's not currently possible to modify the PHP configuration values for domain names assigned the PHP-FPM handler by using the MultiPHP INI Editor. Instead, you'd need to follow the instructions referenced on the following post: Enabling PHP-FPM in MultiPHP Manager
    I also noticed that the file /opt/cpanel/ea-php70/root/etc/php.d/local.ini didn't include the change I made to upload_max_filesize, but still showed the old value. The file date hadn't updated to reflect the updated file, either. None of the sites is using a .user.ini.

    Please note the following entry in the cPanel 66 Release Notes: 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.
    0
  • linux4me2
    Thank you, Michael. So, I must have stumbled on a workaround. I can turn PHP-FPM off, then back on, and my change to upload_max_filesize in the MultiPHP INI Editor was then used by the site using PHP-FPM. The recommended workaround is to edit:
    /var/cpanel/userdata/[user]/[domain].php-fpm.yaml
    and put in:
    php_value_upload_max_filesize: { name: 'php_value[upload_max_filesize]', value: 5M }
    then run:
    /scripts/php_fpm_config --rebuild --domain=[domain]
    I just have one question. The documentation at
    0

Please sign in to leave a comment.