Permission denied in cPanel > MultiPHP Manager after enabling PHP-FPM
I am getting this error from MultiPHP Manager in cPanel. Please let me know this fix.
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-
This issue happen with enable PHP-FPM. I have disabled PHP-FPM then no error. 0 -
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 0 -
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
How to reinstall php-fpm for PHP 7.1 ?0 -
Hello, Could you verify which version of cPanel is installed on the affected system? Thank you. 0 -
Hello, Could you verify which version of cPanel is installed on the affected system? Thank you.
I am installed v66.0.100 -
I am installed v66.0.10
Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.0 -
Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.
Support Request ID is: 87796170 -
How to reinstall php-fpm for PHP 7.1 ?
Hi, You can do this directly from the EasyApache4 section of the WHM, where you can first remove this and then install it again. EasyApache 4 Home - EasyApache 4 - cPanel Documentation0 -
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: 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.0 -
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. 0
Please sign in to leave a comment.
Comments
11 comments