Symptoms
-
Domain
example2.com
shows the following error message after moving it to another subscription (example.com) in Domains > example2.com > Move Domain:403 Forbidden
You don't have permission to access / on this server.
Server unable to read htaccess file, denying access to be safe -
The following error appears in Domains > example2.com > Logs:
[core:crit] (13)Permission denied: AH00529:/var/www/vhosts/example.com/example2.com/httpdocs/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/vhosts/example.com/example2.com/httpdocs/' is executable, referer: https://example2.com/
-
Repairing permissions for
example2.com
shows:There is incorrect ownership on some items in the WWW root directory of the domain 'example2.com' ........................................... [ERROR]
- Incorrect group of /var/www/vhosts/example.com/example2.com/httpdocs:
expected is psaserv (1002), actual is psacln (1003) -
The ownership of the
httpdocs
folder got changed after moving:# ls -ld /var/www/vhosts/example.com/example2.com/httpdocs/
drwxr-x--- 2 user psacln 4096 Sep 2 09:16 /var/www/vhosts/example.com/example2.com/httpdocs/Note: The psaserv group is expected instead of psacln.
Cause
Product issue:
-
#PPPM-12251 "Moving the main domain of a subscription to a different subscription now sets the correct ownership of the domainâs document root directory."
Fixed in:- Plesk Obsidian 18.0.31 27 October 2020 (Linux)
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
As a workaround until the bug is fixed, repair permissions:
-
Connect to the server via SSH
-
Execute the following command for the affected domain:
# plesk repair fs example2.com -y