Errors when changing PHP version in MultiPHP Manager
Hi!
I have an issue when I try to change the PHP version. The error is as follows:
And... here are the file:
Many thanks
warn [php_fpm_config] Cpanel::Exception::InvalidParameter/(XID kwwfq4) El sistema no ha podido aplicar la versi"n "PHP" a "domain.tld": Cpanel::Exception::IO::FileNotFound/(XID 798uxd) El sistema no encuentra un archivo denominado "/home/user/public_html/.htaccess".
The system cannot find a file named "/home/user/public_html/.htaccess".
at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 330.
Cpanel::Exception::create("IO::FileNotFound", ARRAY(0x42586a0)) called at /usr/local/cpanel/Cpanel/WebServer/Supported/apache/Htaccess.pm line 187
[Removed - Included Real Domain Name and Username]
And... here are the file:
root@hydra [/home/username/public_html]# lsattr /home/username/public_html/.htaccess
-------------e- /home/teayudoc/public_html/.htaccess
[removed]
Many thanks
-
Hello, Could you verify the .htaccess file is owned by the account username and set to 0644 permissions? Also, please post the output from the following command: cat /usr/local/cpanel/version
Thank you.0 -
Hello, Could you verify the .htaccess file is owned by the account username and set to 0644 permissions? Also, please post the output from the following command:
cat /usr/local/cpanel/version
Thank you.
The owner and the permissions is ok.root@hydra [/]# cat /usr/local/cpanel/version 11.64.0.360 -
Hi, As per the error displayed in the error log, system is not able to find .htaccess file in the user's directory ------------------ ------------------ System does not find a file named "/home/user/public_html/.htaccess" ------------------ ------------------ Could just try to move the .htaccess temporarily and then try to change the PHP version. # mv .htaccess .htaccess_BK 0 -
-------------e- /home/teayudoc/public_html/.htaccess
The file permission is showing that 000 with chattr. You have to disable chattr and set 644 permission for .htaccess0 -
Hi, As per the error displayed in the error log, system is not able to find .htaccess file in the user's directory ------------------ ------------------ System does not find a file named "/home/user/public_html/.htaccess" ------------------ ------------------ Could just try to move the .htaccess temporarily and then try to change the PHP version. # mv .htaccess .htaccess_BK
Still with the same error.The file permission is showing that 000 with chattr. You have to disable chattr and set 644 permission for .htaccess
No...: Access: (0644/-rw-r--r--) Uid: ( 575/user) Gid: ( 575/user) Chattr is disabled and the permission is 644.0 -
Hello @DavidPD, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you. 0 -
Hello @DavidPD, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.
Thank you! Opened with number: 87469690 -
Hi, If you are using the CloudLinux, check the inodes limit set to this account (File Limit ) may have hit resulting in cPanel not able to edit the file further.. Check it.. 0 -
Hello, To update, this issue stemmed from the permissions on the "/home/$username/public_html" directory itself. It was set to 0000 permissions, preventing the system from reading the .htaccess file. Updating the permissions to 0750 corrected the issue. Thank you. 0
Please sign in to leave a comment.
Comments
9 comments