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!

Permission denied in cPanel > MultiPHP Manager after enabling PHP-FPM

Discussion in 'General Discussion' started by Nirjonadda, Aug 10, 2017.

  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    600
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    I am getting this error from MultiPHP Manager in cPanel. Please let me know this fix.

    Code:
    Failed to open “/var/cpanel/userdata/nmela/mysite.net.php-fpm.cache” for reading: Permission denied at /usr/local/cpanel/Cpanel/CachedDataStore.pm line 368.
     at /usr/local/cpanel/Cpanel/CachedDataStore.pm line 368.
        Cpanel::CachedDataStore::_load_datastore_cache_from_disk("/var/cpanel/userdata/nmela/mysite.net.php-fpm.cache", 1502399553, "/var/cpanel/userdata/nmela/mysite.net.php-fpm.yaml", 88) called at /usr/local/cpanel/Cpanel/CachedDataStore.pm line 232
        Cpanel::CachedDataStore::loaddatastore("/var/cpanel/userdata/nmela/mysite.net.php-fpm.yaml", 0, undef, undef) called at /usr/local/cpanel/Cpanel/CachedDataStore.pm line 83
        Cpanel::CachedDataStore::load_ref("/var/cpanel/userdata/nmela/mysite.net.php-fpm.yaml") called at /usr/local/cpanel/Cpanel/PHPFPM.pm line 635
        Cpanel::PHPFPM::_parse_fpm_yaml("/var/cpanel/userdata/nmela/mysite.net.php-fpm.yaml") called at /usr/local/cpanel/Cpanel/PHPFPM.pm line 590
        Cpanel::PHPFPM::_process_pool_parms(Cpanel::PHP::Config::Domain=HASH(0x384f808)) called at /usr/local/cpanel/Cpanel/PHPFPM.pm line 523
        Cpanel::PHPFPM::get_php_fpm_pool_parms_from_php_config(Cpanel::PHP::Config::Domain=HASH(0x384f808)) called at /usr/local/cpanel/Cpanel/PHP/Vhosts.pm line 155
        Cpanel::PHP::Vhosts::get_php_vhost_versions_from_php_config(HASH(0x2fd7618)) called at /usr/local/cpanel/Cpanel/API/LangPHP.pm line 66
        Cpanel::API::LangPHP::php_get_vhost_versions(Cpanel::Args=HASH(0x3852d50), Cpanel::Result=HASH(0x38530e0)) called at /usr/local/cpanel/Cpanel/API.pm line 276
        Cpanel::API::__ANON__() called at /usr/local/cpanel/Cpanel/API.pm line 348
        eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 348
        Cpanel::API::_eval_guard(Cpanel::Result=HASH(0x38530e0), CODE(0x3852d38)) called at /usr/local/cpanel/Cpanel/API.pm line 276
        Cpanel::API::_run_module_function(Cpanel::Args=HASH(0x3852d50), Cpanel::Result=HASH(0x38530e0), "LangPHP", "php_get_vhost_versions") called at /usr/local/cpanel/Cpanel/API.pm line 139
        Cpanel::API::execute("LangPHP", "php_get_vhost_versions", HASH(0x2ef5758)) called at /usr/local/cpanel/Cpanel/Template/Plugin/Uapi.pm line 24
        Cpanel::Template::Plugin::Uapi::_uapi_exec("LangPHP", "php_get_vhost_versions", HASH(0x2ef5758)) called at /usr/local/cpanel/base/frontend/paper_lantern/multiphp_manager/index.html.tt line 2
        eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/multiphp_manager/index.html.tt line 2
        eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/multiphp_manager/index.html.tt line 16
        Template::Provider::__ANON__(Template::Context=HASH(0x2f2f7b8)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
        eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
        Template::Document::process(Template::Document=HASH(0x2ef4e28), Template::Context=HASH(0x2f2f7b8)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
        eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
        Template::Context::process(Template::Context=HASH(0x2f2f7b8), Template::Document=HASH(0x2ef4e28)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
        eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
        Template::Service::process(Template::Service=HASH(0x2f2f380), "/usr/local/cpanel/base/frontend/paper_lantern/multiphp_manage"..., HASH(0x2f0a4a0)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 64
        Template::process(Template=HASH(0x2f0e3a0), "/usr/local/cpanel/base/frontend/paper_lantern/multiphp_manage"..., HASH(0x2f0a4a0), SCALAR(0x1a4dad8)) called at /usr/local/cpanel/Cpanel/Template.pm line 506
        Cpanel::Template::process_template("cpanel", HASH(0x2f0a4a0), HASH(0x2cad018)) called at cpanel.pl line 1024
        cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/paper_lantern/multiphp_manage"..., 1) called at cpanel.pl line 4637
        cpanel::cpanel::run_standard_mode() called at cpanel.pl line 857
        cpanel::cpanel::script("cpanel::cpanel", "./frontend/paper_lantern/multiphp_manager/index.html.tt") called at cpanel.pl line 272
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    600
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    This issue happen with enable PHP-FPM. I have disabled PHP-FPM then no error.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,872
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    The first line suggests that there is a permission issue occurring in it and you need to thoroughly check whether this issue is only occurring when you change the PHP for only one user or all the users..
    ---------------- ----------------
    Failed to open “/var/cpanel/userdata/nmela/mysite.net.php-fpm.cache” for reading: Permission denied at /usr/local/cpanel/Cpanel/CachedDataStore.pm line 368.
    at /usr/local/cpanel/Cpanel/CachedDataStore.pm line 368.
    ---------------- ----------------

    Also, try reinstall php-fpm
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    600
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    How to reinstall php-fpm for PHP 7.1 ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you verify which version of cPanel is installed on the affected system?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    600
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    I am installed v66.0.10
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Could you open a support ticket using the link in my signature so we can take a closer look?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    600
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator

    Support Request ID is: 8779617
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,872
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    600
    Likes Received:
    15
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    There was a .cache file in '/var/cpanel/userdata/nadda/' with incorrect permissions. It looks like this may be a new issue in version 66.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, internal case CPANEL-15097 is open to address an issue where enabling PHP-FPM on a domain creates a php-fpm.cache userdata file with 0600 permissions, leading to a "Permission Denied" error message when opening MultiPHP Manager in cPanel. I'll monitor the status of this case and update this thread once a resolution is published. In the meantime, the temporary workaround is to manually correct the permissions on the $domain.tld.php-fpm.cache file for the affected account with a command like this:

    Code:
    chmod 0644 /var/cpanel/userdata/$username/$domain.tld.php-fpm.cache
    Replace "$username" with the cPanel username of the affected account, and replace "$domain.tld" with the affected domain name.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, the resolution is included with cPanel version 66.0.13:

    Fixed case CPANEL-15097: Ensure users can read their php-fpm cache files.

    The full cPanel version 66 change log is available at the following URL:

    66 Change Log - Change Logs - cPanel Documentation

    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