The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Forbidden Message

Discussion in 'General Discussion' started by ramorse, Aug 19, 2015.

  1. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    201
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I'm in the process of moving a bunch of accounts from one server to another. All has gone well, except for one. For all other sites the .htaccess file had the redirect line written to it, so while dns was propagating visitors would get the redirect message (changed servers). For this one, however, I am getting a Forbidden message with the detail:

    You don't have permission to access / on this server.
    Server unable to read htaccess file, denying access to be safe

    The .htaccess file on both the old and new servers have permissions of 644.
     
  2. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    201
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I should add that the Transfer Tool page is still at Restore 24%. And has been there for quite some time. It's just that in monitoring transfers before, I always got the default "Site has moved" page that is added to the old server's .htaccess file. However, that line is not in the old server's .htaccess file for that account.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,675
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    201
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    [core:crit] [pid 3966] (13)Permission denied: [client 94.228.34.203:55787] AH00529: /home/username/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/username/public_html/' is executable
     
  5. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    201
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I have compared permissions on the home directory of this user along with the .htaccess file of this user with those of other user accounts and am not seeing a difference. That's why I am puzzled.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,675
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    What are the permissions and ownership values for the account's public_html directory?

    Thank you.
     
  7. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    201
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Permissions: drwxr-x---
    Owner: username:username

    Same as all the other accounts.
     
  8. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    201
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    BTW, Transfer Tool page on new server has been stuck on Restore at 24% for hours now. Also, if I go to /usr/local/cpanel/bin/view_transfer There is no view_transfer directory.
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,675
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Which PHP handler is in-use on this server? Are you using Mod_Ruid2? Note the default ownership value for the public_html directory is "username:nobody" (depending on Mod_Ruid2 usage).

    The "/usr/local/cpanel/bin/view_transfer" location is a file as opposed to a directory. EX:

    Code:
    /usr/local/cpanel/bin/view_transfer DHGfWHNIu8STwNfZ3ywIOLLSGiCQtS
    Thank you.
     
  10. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    201
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Not using Mod_Ruid. All other accounts are username:username and work fine.

    OK. found the file. thanks for clearing that up. I have, btw, submitted a support ticket.
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,675
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you post the ticket number here so we can update this thread with the outcome?

    Thank you.
     
  12. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    201
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Ticket ID# 7029525
     
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,675
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page