403 Forbidden for subdomains
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.
-
Whenever I upload files to a subdomain on my server
Hello :) Could you verify how you are uploading files to the directories? Thank you.0 -
Most of the time via FTP (FileZilla), but earlier it happened when I was copying some files from one directory to another via SSH. 0 -
Are you logging in as the account username to FTP/SSH when making these changes? Thank you. 0 -
On FTP yes. For SSH I typically just use root. 0 -
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. 0 -
Sorry for the delay. I've been busy lately. I've opened up a ticket as requested. The ticket number is 7359459. 0 -
To update, the issue was not reproducible when auditing for changes in the directory. Thank you. 0
Please sign in to leave a comment.
Comments
7 comments