jackoackely
New Pleskian
Hello!
I tested this only with subdomain, but I think same goes with regular domains. The behavior is annoying and I don't understand why this happens.
I will document each step and what happens.
1. I add new subdomain for domain.tld with document root is httpdocs/sub.domain.tld/public
2. After that domain get successfully added and everything works totally fine, I can open test page.
3. Now we gonna run "Diagnose and repair" and it will show that " There is incorrect ownership on some items in the WWW root directory of the domain 'maindomain.tld'.
4. Now let's run to understand better what is going on...
I get next:
Now I press Y and fix the issue. It does repair successfully the problem, but then we have new problem.
5. Then I try to open sub.domain.tld I will get next Plesk error page "Server Error 403 Forbidden You do not have permission to access this document.
6. And then we gonna fix it with
7. After that diagnose and repair shows no issue and everything is green and I am able to access sub.domain.tld without Server Error 403.
Doing this over and over is very time consuming and stupid. The only thing I found is [FIXED BUG] plesk repair fs utility doesn't set correct ownership if apache user is a file owner, but I am not sure if it will help here. Can someone point me in the right direction? How to fix this issue?
Some info:
maindomain.tld stands for main domain/hostname which is being used for Plesk Obsidian
sub.domaint.tld is a different and new subdomain for testing
OS: CentOS Linux 7.8.2003 (Core)
Product: Plesk Obsidian 18.0.28 , last updated at June 24, 2020 10:05 AM
#Added also there is this one [FIXED BUG] Plesk repair fs detects wrong permissions if subdomain's DocumentRoot is inside domain's DocumentRoot, which states that this issue was fixed...
I tested this only with subdomain, but I think same goes with regular domains. The behavior is annoying and I don't understand why this happens.
I will document each step and what happens.
1. I add new subdomain for domain.tld with document root is httpdocs/sub.domain.tld/public
2. After that domain get successfully added and everything works totally fine, I can open test page.
3. Now we gonna run "Diagnose and repair" and it will show that " There is incorrect ownership on some items in the WWW root directory of the domain 'maindomain.tld'.
4. Now let's run to understand better what is going on...
Code:
# plesk repair fs -verbose
Code:
There is incorrect ownership on some items in the WWW root directory
of the domain 'maindomain.tld' ...................... [ERROR]
- Incorrect group of /var/www/vhosts/maindomain.tld/httpdocs/sub.domain.tld:
expected is psacln (1003), actual is psaserv (1002)
5. Then I try to open sub.domain.tld I will get next Plesk error page "Server Error 403 Forbidden You do not have permission to access this document.
6. And then we gonna fix it with
Code:
# find /var/www/vhosts/maindomain.tld/httpdocs/sub.domain.tld/ -type d -exec chmod 755 {} \;
Doing this over and over is very time consuming and stupid. The only thing I found is [FIXED BUG] plesk repair fs utility doesn't set correct ownership if apache user is a file owner, but I am not sure if it will help here. Can someone point me in the right direction? How to fix this issue?
Some info:
maindomain.tld stands for main domain/hostname which is being used for Plesk Obsidian
sub.domaint.tld is a different and new subdomain for testing
OS: CentOS Linux 7.8.2003 (Core)
Product: Plesk Obsidian 18.0.28 , last updated at June 24, 2020 10:05 AM
#Added also there is this one [FIXED BUG] Plesk repair fs detects wrong permissions if subdomain's DocumentRoot is inside domain's DocumentRoot, which states that this issue was fixed...