How to Reset Permissions for a Plesk Virtual Host

Filed Under (Plesk) by jc on 18-12-2009

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.

LogFilesList->init() failed: filemng failed: filemng: stat failed: Permission denied

Filed Under (Plesk) by jc on 21-02-2009

Tagged Under : , ,

If you get this error when trying to access Log Manager, this happens because filemng which runs as psaadm user does not have permission to access the directory. You can get a similar error on the File Manager:

Error: Unable to change directory to /statistics: filemng failed: filemng: opendir failed: Permission denied

To fix this problem make sure psaadm is part of the psaserv group in /etc/group

–JC

Fixing Permissions for Plesk domains.

Filed Under (Plesk) by jc on 29-02-2008

Tagged Under : , ,

If permissions for Plesk domains get screwed up for any reason (chown -R sillyclown:sillyadmin /var/www/vhosts) or some of the sort, you can fix it by running the following command:

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

Cheers!