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!

Errors when changing PHP version in MultiPHP Manager

Discussion in 'EasyApache' started by DavidPD, Jul 25, 2017.

Tags:
  1. DavidPD

    DavidPD Registered

    Joined:
    Jul 25, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Hi!

    I have an issue when I try to change the PHP version. The error is as follows:

    Code:
    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:

    Code:
    root@hydra [/home/username/public_html]# lsattr /home/username/public_html/.htaccess
    -------------e- /home/teayudoc/public_html/.htaccess
    [removed]
    
    Many thanks
     
    #1 DavidPD, Jul 25, 2017
    Last edited by a moderator: Jul 26, 2017
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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:

    Code:
    cat /usr/local/cpanel/version
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. DavidPD

    DavidPD Registered

    Joined:
    Jul 25, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    The owner and the permissions is ok.

    Code:
    root@hydra [/]# cat /usr/local/cpanel/version
    11.64.0.36
    
     
  4. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,880
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    43
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    The file permission is showing that 000 with chattr. You have to disable chattr and set 644 permission for .htaccess
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. DavidPD

    DavidPD Registered

    Joined:
    Jul 25, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Still with the same error.

    No...: Access: (0644/-rw-r--r--) Uid: ( 575/user) Gid: ( 575/user)
    Chattr is disabled and the permission is 644.
     
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @DavidPD,

    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. DavidPD

    DavidPD Registered

    Joined:
    Jul 25, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Thank you! Opened with number: 8746969
     
  9. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,880
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    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