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!

MultiPHP Manager Error

Discussion in 'EasyApache' started by ayman qaidi, Sep 3, 2018.

  1. ayman qaidi

    ayman qaidi Member

    Joined:
    May 13, 2016
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    earth
    cPanel Access Level:
    Root Administrator
    Hello

    today i was trying to change php version on one of host i get this error

    Error: API failure: Not a reference at /usr/local/cpanel/Cpanel/PHPFPM.pm line 659.

    no domains is showing . please quick help
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. triatlas

    triatlas Member

    Joined:
    Jan 27, 2017
    Messages:
    13
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    GERMANY
    cPanel Access Level:
    Root Administrator
    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?
     
    petersphilo likes this.
  4. vacancy

    vacancy Well-Known Member

    Joined:
    Sep 20, 2012
    Messages:
    213
    Likes Received:
    27
    Trophy Points:
    28
    cPanel Access Level:
    Root Administrator
    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.
     
  5. triatlas

    triatlas Member

    Joined:
    Jan 27, 2017
    Messages:
    13
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    GERMANY
    cPanel Access Level:
    Root Administrator
    Great tip -> works. Thank you!
     
  6. triatlas

    triatlas Member

    Joined:
    Jan 27, 2017
    Messages:
    13
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    GERMANY
    cPanel Access Level:
    Root Administrator
    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.
     
  7. vacancy

    vacancy Well-Known Member

    Joined:
    Sep 20, 2012
    Messages:
    213
    Likes Received:
    27
    Trophy Points:
    28
    cPanel Access Level:
    Root Administrator
    cpanel force update try and restart the server, then clear the browser cache and try again.
     
  8. triatlas

    triatlas Member

    Joined:
    Jan 27, 2017
    Messages:
    13
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    GERMANY
    cPanel Access Level:
    Root Administrator
    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?
     
    #8 triatlas, Sep 12, 2018
    Last edited: Sep 12, 2018
  9. triatlas

    triatlas Member

    Joined:
    Jan 27, 2017
    Messages:
    13
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    GERMANY
    cPanel Access Level:
    Root Administrator
    @vacancy: Do you have any sites running on fpm?
     
  10. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. triatlas

    triatlas Member

    Joined:
    Jan 27, 2017
    Messages:
    13
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    GERMANY
    cPanel Access Level:
    Root Administrator
  12. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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:

    Code:
    /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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. triatlas

    triatlas Member

    Joined:
    Jan 27, 2017
    Messages:
    13
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    GERMANY
    cPanel Access Level:
    Root Administrator
    Hello @cPanelMichael,
    thank you for your help. This fixed the problem.
     
  14. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm glad to see that helped! Thanks for sharing the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. ayman qaidi

    ayman qaidi Member

    Joined:
    May 13, 2016
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    earth
    cPanel Access Level:
    Root Administrator
    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 =
     
    #15 ayman qaidi, Sep 19, 2018
    Last edited by a moderator: Sep 19, 2018
  16. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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):

    Code:
    ---
    php_admin_value_disable_functions: { name: 'php_admin_value[disable_functions]', value: }
    Then, run the following command:

    Code:
    /scripts/php_fpm_config --rebuild
    Here's a resource you may find helpful when editing that file:

    Tutorial - Managing php.ini directives with PHP-FPM

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice