Operating System & Version
CentOS 7.8
cPanel & WHM Version
v88

gandaalv

Registered
Jul 11, 2020
2
0
1
Germany
cPanel Access Level
Root Administrator
It seems like i made some mistake somewhere and now i am not able to change the PHP version due to all those errors.

Any idea on how i could fix this?
Code:
Error: (XID q9xqau) 1 error occurred: Error #1: The system failed to apply the “PHP” version to “domain.pw”: Cpanel::Exception::IO::ChownError/(XID gc6gqu) The system failed to set the user ID to “0” and the group ID to “0” on “GLOB(0x44ebad0)” because of an error: Operation not permitted at /usr/local/cpanel/Cpanel/FileUtils/Access.pm line 78. Cpanel::FileUtils::Access::ensure_mode_and_owner(GLOB(0x44ebad0), 420, 0, 0) called at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 202 Cpanel::Transaction::File::Base::_set_permissions(GLOB(0x44ebad0), 420, ARRAY(0x428a500), 511) called at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 417 Cpanel::Transaction::File::Base::__ANON__(GLOB(0x44ebad0), __CPANEL_HIDDEN__..., 511) called at /usr/local/cpanel/Cpanel/SafeFile/Replace.pm line 94 Cpanel::SafeFile::Replace::locked_atomic_replace_contents(GLOB(0x4244aa8), Cpanel::SafeFileLock=ARRAY(0x4547878), CODE(0x44e5ce8)) called at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 430 Cpanel::Transaction::File::Base::_save_or_die(Cpanel::Transaction::File::Raw=HASH(0x4244118), "offset", 0, "write_cr", CODE(0x43b45f8)) called at /usr/local/cpanel/Cpanel/Transaction/File/Raw.pm line 76 Cpanel::Transaction::File::Raw::save_or_die(Cpanel::Transaction::File::Raw=HASH(0x4244118)) called at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 272 eval {...} called at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 272 Cpanel::Transaction::File::Base::save_and_close_or_die(Cpanel::Transaction::File::Raw=HASH(0x4244118)) called at /usr/local/cpanel/Cpanel/WebServer/Supported/apache/Htaccess.pm line 204 Cpanel::WebServer::Supported::apache::Htaccess::_internal_set_handler(Cpanel::WebServer::Supported::apache::Htaccess=HASH(0x4414f38), __CPANEL_HIDDEN__, Cpanel::ProgLang::Supported::php=HASH(0x4261d88), __CPANEL_HIDDEN__, Cpanel::WebServer::Supported::apache::Handler::inherit=HASH(0x4414f68), __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at /usr/local/cpanel/Cpanel/WebServer/Supported/apache/Htaccess.pm line 212 Cpanel::WebServer::Supported::apache::Htaccess::__ANON__() called at /usr/local/cpanel/Cpanel/AccessIds/ReducedPrivileges.pm line 96 eval {...} called at /usr/local/cpanel/Cpanel/AccessIds/ReducedPrivileges.pm line 96 Cpanel::AccessIds::ReducedPrivileges::call_as_user(CODE(0x4415340), 1002, 1003) called at /usr/local/cpanel/Cpanel/WebServer/Supported/apache/Htaccess.pm line 217
Greetings.
 
Last edited by a moderator:

gandaalv

Registered
Jul 11, 2020
2
0
1
Germany
cPanel Access Level
Root Administrator
This indicates the permissions on the .htaccess weren't set correctly. What's the current permissions and ownership of the file?
I have the bad habit to use the root account for sftp, ssh etc.
So the permissions/ownership everywhere is from the root user.

edit:
Code:
chown -R username:username /home/username/public_html/.htaccess
using that command on the .htaccess file fixed the issue
 
Last edited: