Repair Plesk vhost permissions

Sometimes you need to fix vhost permissions (after restoring a backup without permissions for example).

~# /usr/local/psa/admin/sbin/vhostmng --install-vhost --vhost-name= --user-name= --set-content-permissions

For Parallels Plesk Panel 10.0-10.3 (in version 10.4 this functionality has been redesigned this solution is not applicable):

~# /usr/local/psa/admin/sbin/vhostmng --install-vhost --vhost-name= --user-name= --www-root=/var/www/vhosts//httpdocs --cgi-bin-path=/var/www/vhosts//cgi-bin --set-content-permissions

Source: http://kb.parallels.com/en/6572

Update: the same command can be used on Windows Plesk;

C:Program Files (x86)ParallelsPleskadminbin>vhostmng --install-vhost --vhost-name= --user-name= --set-content-permissions