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.

403 Forbidden for subdomains

Discussion in 'General Discussion' started by Oldiesmann, Oct 13, 2015.

  1. Oldiesmann

    Oldiesmann Active Member

    Joined:
    Dec 30, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cincinnati, Ohio, USA
    Whenever I upload files to a subdomain on my server, the permissions and ownership get changed on the directories for all the subdomains, resulting in a 403 Forbidden error with a message of "Unable to read from htaccess file, denying access to be safe" whenever I try to access a site on any subdomain.

    Prior to this, the directories are owned by user:user with permissions of 755 (rwxr-xr-x).
    After the change, the directories are owned by user:nobody with permissions of 750 (rwxr-x---).

    Each time I change the ownership and permissions back with SSH, but it just gets changed back each time I upload files to a subdomain.

    This is a VPS, with PHP running in FastCGI mode and Apache suExec enabled.

    It's more of a minor annoyance since all of the affected sites are mine and it only takes a couple minutes to change permissions and ownership back, but I'd like to prevent this from happening in the future if possible.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you verify how you are uploading files to the directories?

    Thank you.
     
  3. Oldiesmann

    Oldiesmann Active Member

    Joined:
    Dec 30, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cincinnati, Ohio, USA
    Most of the time via FTP (FileZilla), but earlier it happened when I was copying some files from one directory to another via SSH.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Oldiesmann Active Member

    Joined:
    Dec 30, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cincinnati, Ohio, USA
    On FTP yes. For SSH I typically just use root.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  7. Oldiesmann

    Oldiesmann Active Member

    Joined:
    Dec 30, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cincinnati, Ohio, USA
    Sorry for the delay. I've been busy lately. I've opened up a ticket as requested. The ticket number is 7359459.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

Share This Page