Skip to main content

MultiPHP Manager Error

Comments

15 comments

  • cPanelMichael
    Hello @ayman qaidi, Do you notice any output to /usr/local/cpanel/logs/error_log when this happens? Also, are you using any custom configuration files in the /var/cpanel/ApachePHPFPM/ directory, and if so, what are the contents of those files? Ensure to replace any identifying information with examples when posting the output. Thank you.
    0
  • triatlas
    I have the same error. I noticed this after customizing easyapache4, adding php 7.1 and 7.2. But this could be coincidence. In /var/cpanel/ApachePHPFPM/ I have to empty files: default_accounts_to_fpm system_pool_defaults.yaml Can you help?
    0
  • vacancy
    Removing php-fpm packages from easyapache 4 and re-installing will fix the problem. I saw this error on some servers. I solved it like this.
    0
  • triatlas
    Great tip -> works. Thank you!
    0
  • triatlas
    Mmh. This worked, but when trying to change an account from php 7.0 to the new php 7.2 the list remains empty again on page reload. When trying to uninstall and reinstall php-fpm via EasyApache4 then, the list remains empty.
    0
  • vacancy
    cpanel force update try and restart the server, then clear the browser cache and try again.
    0
  • triatlas
    The problem seems to be: 1) Activating FPM for an account 2) System creates two files: 3) Content of the files: [user].de.php-fpm.cache with content --- _is_present: 1 and and [user].de.php-fpm.yaml with content {"_is_present":1} 3) seems to cause problems. When I delete those files, the list appears again. So at the moment I cannot switch any account to use fpm. cPanel force update and restarting the server did not help. There might be missing something for properly setting up the .yaml-files?
    0
  • triatlas
    @vacancy: Do you have any sites running on fpm?
    0
  • cPanelMichael
    In /var/cpanel/ApachePHPFPM/ I have to empty files: default_accounts_to_fpm system_pool_defaults.yaml

    Hello @triatlas, The error message you reported generally suggests there's a syntax issue in one of the PHP-FPM YAML configuration files. Can you let us know the contents of the /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml file? Thank you.
    0
  • triatlas
    Hello @cPanelMichael, the file is empty.
    0
  • cPanelMichael
    the file is empty.

    Hello @triatlas, That's the problem. If you're not going to add any custom entries to the file, you should remove it and then run the following command: /scripts/php_fpm_config --rebuild
    Note that internal case CPANEL-21882 will fix this in cPanel & WHM version 76 so that empty /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml files won't result in an error. Thank you.
    0
  • triatlas
    Hello @cPanelMichael, thank you for your help. This fixed the problem.
    0
  • cPanelMichael
    Hello @cPanelMichael, thank you for your help. This fixed the problem.

    I'm glad to see that helped! Thanks for sharing the outcome.
    0
  • ayman qaidi
    no error found in /usr/local/cpanel/logs/error_log i dont use and custom config and i still have issue please help content of system_pool_defaults.yaml have only this line php_admin_value_disable_functions =
    0
  • cPanelMichael
    content of system_pool_defaults.yaml have only this line php_admin_value_disable_functions =

    Hello @ayman qaidi, You'll need to update that file so it looks like this instead (notice the top line and the format difference in the second line): --- php_admin_value_disable_functions: { name: 'php_admin_value[disable_functions]', value: }
    Then, run the following command: /scripts/php_fpm_config --rebuild
    Here's a resource you may find helpful when editing that file: Thank you.
    0

Please sign in to leave a comment.