Symptoms
- Apache user is an owner or group of files inside webspace:
# ls -ld /var/www/vhosts/example.com/httpdocs
drwxr-x— 5 apache apache 4096 Mar 23 13:01 /var/www/vhosts/example.com/httpdocs -
plesk repair fs example.com
utility doesn’t change ownership and group from apache tosystem_user:psacln
orsystem_user:psaserv
-
plesk repair fs
 utility hangs
Cause
Product issue:
-
#PPPM-8271 “The plesk repair fs utility now fixes files and directories owned by the Apache system user as a part of incorrect ownership on some items in the WWW root directory.”
Fixed in:- Plesk Obsidian 02 July 2018 (fixed as PPP-35993, Linux)
Resolution
Workaround
If update is not possible for some reason you may try the following
temporary solution
Login to the server via SSH and change file owner and group manually.
- Find system user of subscription example.com:
# grep example.com /etc/passwd | head -1
jdoe:x:10000:1003::/var/www/vhosts/example.com:/bin/false - Set correct permission:
# chown jdoe:psaserv /var/www/vhosts/example.com
# chown jdoe:psaserv /var/www/vhosts/example.com/httpdocs
# chown -RÂ jdoe:psacln /var/www/vhosts/example.com/httpdocs/*
# find /var/www/vhosts/example.com/httpdocs/* -type d -exec chmod 0755 {} ;
# find /var/www/vhosts/example.com/httpdocs/* -type f -exec chmod 0644 {} ; - Run
plesk repair fs
utility again:# plesk repair fs -y example.com
Note: In case there are many affected domains, it is possible to set the default permissions again by the help of this script.