Errors when changing PHP version in MultiPHP Manager
Hi everyone,
I have an issue when I try to change the PHP version or even just simply try to change the php.ini through the INI editor. The error is as follows:
Also when I try to change values in the php.ini I receive an error saying "The EUID, 1000, does not own /path/tp/.htacccess" It seems these issues correlate. What could cause this? Any help would be highly appreciated! Best, Chris
Error:(XID zmqznz) 1 error occurred: Error #1: The system failed to apply the "PHP" version to "clooud.tv": Cpanel::Exception::IO::ChmodError/(XID ran4w8)
The system failed to set the permissions on one or more inodes to "0644" (as EUID: 1000, EGID: 1000 1000) because of the following error: Operation not permitted at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 330.
Cpanel::Exception::create("IO::ChmodError", ARRAY(0x5707f48)) called at /usr/local/cpanel/Cpanel/Autodie/Perms.pm line 38 Cpanel::Autodie::Perms::chmod(420, GLOB(0x5791d60)) called at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 167
Cpanel::Transaction::File::Base::_set_permissions(GLOB(0x5791d60), 420, undef) called at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 110
Cpanel::Transaction::File::Base::new("Cpanel::Transaction::File::Raw", "path", "/home/clooudtv/httpdocs/public/.htaccess", "permissions", 420, "restore_original_permissions", 1) called at /usr/local/cpanel/Cpanel/WebServer/Supported/apache/Htaccess.pm line 188
Cpanel::WebServer::Supported::apache::Htaccess::_internal_set_handler(Cpanel::WebServer::Supported::apache::Htaccess=HASH(0x56a3fa0), "userdata", Cpanel::WebServer::Userdata=HASH(0x13d1dc0), "package", "inherit", "handler", Cpanel::WebServer::Supported::apache::Handler::inherit=HASH(0x56abc90), "lang", ...) called at /usr/local/cpanel/Cpanel/WebServer/Supported/apache/Htaccess.pm line 209
Cpanel::WebServer::Supported::apache::Htaccess::__ANON__() called at /usr/local/cpanel/Cpanel/AccessIds/ReducedPrivileges.pm line 97 eval {...} called at /usr/local/cpanel/Cpanel/AccessIds/ReducedPrivileges.pm line 97 Cpanel::AccessIds::ReducedPrivileges::call_as_user(CODE(0x5795cd8), 1000, 1000) called at /usr/local/cpanel/Cpanel/WebServer/Supported/apache/Htaccess.pm line 211 Cpanel::WebServer::Supported::apache::Htaccess::set_handler(Cpanel::WebServer::Supported::apache::Htaccess=HASH(0x56a3fa0), "userdata", Cpanel::WebServer::Userdata=HASH(0x13d1dc0), "package", "inherit", "vhost", "clooud.tv", "lang", ...) called at /usr/local/cpanel/Cpanel/WebServer/Supported/apache.pm line 914 Cpanel::WebServer::Supported::apache::__ANON__(Cpanel::Exception::IO::ChmodError=HASH(0x5589210)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 122 Try::Tiny::try(CODE(0x56a4000), Try::Tiny::Catch=REF(0x56dcf60)) called at /usr/local/cpanel/Cpanel/WebServer/Supported/apache.pm line 920 Cpanel::WebServer::Supported::apache::set_vhost_lang_package(Cpanel::WebServer::Supported::apache=HASH(0x53b5240), "vhost", "clooud.tv", "lang", Cpanel::ProgLang::Supported::php=HASH(0x4dfe7e8), "package", "inherit", "userdata", ...) called at /usr/local/cpanel/Cpanel/WebServer.pm line 450 Cpanel::WebServer::__ANON__(Cpanel::Exception::IO::ChmodError=HASH(0x56abae0)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 122 Try::Tiny::try(CODE(0x56a3b68), Try::Tiny::Catch=REF(0x53b48f8)) called at /usr/local/cpanel/Cpanel/WebServer.pm line 455 Cpanel::WebServer::set_vhost_lang_package(Cpanel::WebServer=HASH(0x4f02430), "vhost", "clooud.tv", "user", "clooudtv", "lang", Cpanel::ProgLang::Supported::php=HASH(0x4dfe7e8), "package", ...) called at /usr/local/cpanel/Cpanel/WebServer.pm line 529 Cpanel::WebServer::__ANON__() called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 101 eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 92 Try::Tiny::try(CODE(0x4ea3908), Try::Tiny::Catch=REF(0x50d3d98)) called at /usr/local/cpanel/Cpanel/WebServer.pm line 535 Cpanel::WebServer::set_vhost_lang_packages(Cpanel::WebServer=HASH(0x4f02430), "user", "clooudtv", "vhosts", ARRAY(0x501da08), "lang", Cpanel::ProgLang::Supported::php=HASH(0x4dfe7e8), "package", ...) called at /usr/local/cpanel/Cpanel/PHP/Vhosts.pm line 97 Cpanel::PHP::Vhosts::setup_vhosts_for_php(ARRAY(0x50d35e8)) called at /usr/local/cpanel/Cpanel/PHP/Vhosts.pm line 238 Cpanel::PHP::Vhosts::php_set_vhost_versions_as_root(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, HASH(0x1361440), 0) called at bin/admin/Cpanel/multilang.pl line 67 eval {...} called at bin/admin/Cpanel/multilang.pl line 67 bin::admin::Cpanel::multilang::UPDATE_VHOST_CPANEL(bin::admin::Cpanel::multilang=HASH(0x53756f8), "ea-php70", "clooud.tv") called at /usr/local/cpanel/Cpanel/AdminBin/Script/Call.pm line 119 Cpanel::AdminBin::Script::Call::_dispatch_method(bin::admin::Cpanel::multilang=HASH(0x53756f8)) called at /usr/local/cpanel/Cpanel/AdminBin/Script.pm line 166 Cpanel::AdminBin::Script::new("bin::admin::Cpanel::multilang", "alarm", 20) called at bin/admin/Cpanel/multilang.pl line 23
Also when I try to change values in the php.ini I receive an error saying "The EUID, 1000, does not own /path/tp/.htacccess" It seems these issues correlate. What could cause this? Any help would be highly appreciated! Best, Chris
-
Have you checked the ownership of your .htaccess file? 0 -
It writes to your .htaccess and from the error, the script is failing to set the 0644 permission on that file. Check file attributes : lsattr /path/to/.htaccess 0 -
Thanks for the responses: lsattr .htaccess results in -------------e-- .htaccess Thanks for any help! 0 -
attributes are fine. e is normal . you need to check permission.Also, ensure the filesystem is writeable 0 -
Cpanel::Transaction::File::Base::new("Cpanel::Transaction::File::Raw", "path", "/home/clooudtv/httpdocs/public/.htaccess", "permissions", 420, "restore_original_permissions", 1) called at /usr/local/cpanel/Cpanel/WebServer/Supported/apache/Htaccess.pm line 188
Hello, It looks like you are using a custom document root for the domain name. Could you confirm if the .htaccess file exists under that path, and if so, what the ownership values are set to? For example, based on the error message, the command you'd use is:stat /home/$username/httpdocs/public/.htaccess
Thank you.0 -
I had this problem. The issue was .htaccess had root as owner instead of the user account. Correcting the owner solved the problem. chown your_user_account:your_user_account .htaccess 0 -
this issue was making me crazy finally i solved it by using chown -R youruser:youruser /home/youruser/public_html change youruser with your website username i hope it can help people it sure helped me cuz even the htaccess was not working 0 -
I had a similar problem, but I tried to change PHP version through cpanel and WHM and no luck. My PHP version was 7.3 and I need to change it to 7.4. I wasn't able to find a solution but people on here mentioned .htaccess, so I looked into it and found this code php_flag display_errors On php_value max_execution_time 30 php_value max_input_time 60 php_value max_input_vars 1000 php_value memory_limit 512M php_value post_max_size 8M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php72" php_value upload_max_filesize 25M php_flag zlib.output_compression On
it looked strange to me that the path is php72, so I changed it to 73 and everything worked o_O Hope it will help someone P.S. I'm using Cloudlinux0 -
this issue was making me crazy finally i solved it by using chown -R youruser:youruser /home/youruser/public_html change youruser with your website username i hope it can help people it sure helped me cuz even the htaccess was not working
Thanks for curing my issue. While trying to go from 7.2 to 8.1 and installing composer at the same time, I ran into a lot of permission problems with composer, during the course of fixing that and getting it to work I managed to mess up all my public_html stuff so I was getting this error. I ended up at this CPanel Article which was a bit misleading as it says user and username implying to me that there were 2 different ones needed when it was just youruser for all 3.0
Please sign in to leave a comment.
Comments
9 comments