Unable to remove domain in Plesk: Permission denied


2017-06-01 12:16:02 UTC


2017-08-08 13:24:24 UTC


Was this article helpful?

Have more questions?

Submit a request

Unable to remove domain in Plesk: Permission denied

Applicable to:

  • Plesk for Linux


Unable to remove domain in Plesk. The following error is shown:
An error occurred during domain removal: Unable to remove domains: Permission denied.


Cause is not known yet.


  1. Connect to the server using SSH
  2. Execute the following commands one by one to check Plesk vhosts permissions and Plesk database errors:
    # plesk repair fs
    # plesk repair db

    Accept suggested solutions for permissions. For database fixes, accept solutions carefully.
  3. Try domain removing using Plesk. If the issue persists, use this command to remove the domain:
    # plesk bin domain -r example.com

    where 'example.com' is the name of your domain.
  4. If the same error is still shown, do the following:
    • Enable debug logging according to How to enable/disable debug logging in Plesk
    • Enable additional debug and try to remove domain once again:
      # export PLESK_DEBUG=1
      # plesk bin domain -r example.com
    • Search for a new error in the output:
      In case "Permission denied" error occurs for Plesk's binaries or directories, for example:
      what(): open('/etc/sw/keys/lock/.sw-engine-kv.pid'): Permission denied
      signal: aborted

      then following commands can be used to set default permissions for Plesk files on CentOS/RHEL/CloudLinux:
      # for p in $(rpm -qa | egrep "psa|plesk"); do rpm --setugids $p; done
      # for p in $(rpm -qa | egrep "psa|plesk"); do rpm --setperms $p; done
      # chown root.psaadm /usr/local/psa/admin/sbin/mod_wrapper
    • Do not forget to disable debug in /usr/local/psa/admin/conf/panel.ini and unset variable PLESK_DEBUG:
      # unset PLESK_DEBUG
    • If another error is found, search for the solution in Plesk Knowledge Base
Have more questions? Submit a request
Please sign in to leave a comment.