I need to fix broken ownerships and permissions for directories and files of a domain in Parallels Plesk Panel (PP) 11.
Run the below commands with superuser privileges to download the archived shell script. Unzip it and execute it, providing the needed domain name as an argument:
# wget http://kb.parallels.com/Attachments/kcs-1896/recover_plesk_directories.zip # unzip recover_plesk_directories.zip # sh recover_plesk_directories.sh domain.tld
Script uses internal utility
"dirmng" and set of predefined rules to reset permissions and ownerships on core elements of virtual host directory to their default values. It is not a complete solution for file permissions and ownership issues, but addresses a set of common problems and might be useful.