How to Reset Permissions for a Plesk Virtual Host

11:36 am Plesk

Many times I see customers accidentally changing permissions recursively for a whole domain, breaking Plesk functionality including log rotation. Here is how to fix it:

/usr/local/psa/admin/sbin/vhostmng --install-vhost --vhost-name=domain.tld --user-name=domain_user --set-content-permissions

Substitute domain.tld with the domain in question and domain_user with the domain user for that domain. If you accidentally change permissions for several domains you can also script that command extracting some of that information from the psa database.

Cheers.

Leave a Comment

Your comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.