Skip to main content

PHP-FPM PHP.ini configuration

Comments

5 comments

  • cPanelMichael
    A word of warning: should you use WHM > MultiPHP Manager to change values for each pool, you will find that cPanel unhelpfully rebuilds the conf files without using your customised yaml templates. This has been reported as a bug to cPanel, hopefully they will fix it in a later release.

    This is handled via internal case EA-5615. You can monitor the Change Logs to see when the resolution is published: Change Logs - Change Logs - cPanel Documentation
    Another oddity: it is not possible to change the value of error_reporting at runtime using the PHP function error_reporting() when using PHP-FPM 5.6.x. This DOES work in PHP 7.0 however. I don't know why.

    Could you let us know the full steps you took to change the value?
    Finally, if anyone knows how to change the default values for each version of PHP, rather than having to edit for each domain, please let me know.

    The following document explains how this works: PHP-FPM Code and FileSystem Layout for EasyApache 4 - Documentation - cPanel Documentation Thank you.
    0
  • Mark Croxton
    ? Another oddity: it is not possible to change the value of error_reporting at runtime using the PHP function error_reporting() when using PHP-FPM 5.6.x. This DOES work in PHP 7.0 however. I don't know why. Could you let us know the full steps you took to change the value? Compile Apache (event mpm) + PHP-FPM 5.6 and 7.0 with EA4. Set an account to use PHP-FPM 5.6. Create a file test.php in the webroot of this account, and add this to it: error_reporting(0); phpinfo(); Result: PHP info will report a non-zero value for error_reporting. Switch the account to PHP-FPM 7.0 and you will see error_reporting is set to 0 in PHP info.
    0
  • cPanelMichael
    Compile Apache (event mpm) + PHP-FPM 5.6 and 7.0 with EA4. Set an account to use PHP-FPM 5.6. Create a file test.php in the webroot of this account, and add this to it: error_reporting(0); phpinfo(); Result: PHP info will report a non-zero value for error_reporting.

    Feel free to open a support ticket using the link in my signature so we can take a closer look at the affected system. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • did-vmonroig
    This is handled via internal case EA-5615. You can monitor the Change Logs to see when the resolution is published:
    0
  • cPanelMichael
    Any news about this? We still have YAML files reset every time.

    Hello, There's no update to report at this time, but I will continue to monitor the case and provide updates as they become available. Thank you. Update: This looks to have related to a flaw in how the syntax was entered in the PHP-FPM configuration file. The following warning was added to our
    0

Please sign in to leave a comment.