Article ID: 128347, created on Feb 16, 2016, last review on Oct 6, 2016

  • Applies to:
  • Plesk 12.5 for Windows


After changing of virtual hosts location with Plesk Reconfigurator to new drive, websites became unavailable.

psaadm and psacln do not have access permissions to new drive.


Bug #PPPM-1224. It is fixed in Plesk Onyx.


Upgrade to the latest Plesk version.

If upgrade is not possible:

  1. Create Windows Power Shell script:

    Get-ChildItem -Path <vhosts> -Recurse |
        ForEach-Object {
            $itemPath = $_.FullName
            & icacls.exe "$itemPath" /remove:d psacln
            & icacls.exe "$itemPath" /remove:d psaadm
            & icacls.exe "$itemPath" /remove:g Users

    Where <vhosts> is path to new virtual hosts location.
    Run it to set correct permissions.

  2. Create Windows Power Shell script:

    & "$env:plesk_bin\dbclient.exe" --direct-sql --sql="select name from domains" | Foreach-Object {
      $domainName = $_.Trim()
      if ($domainName -eq "") { return }
      if ($domainName -eq "name") { return }
      Write-Output "Fixing domain $domainName ..."
      & "$env:plesk_cli\repair.exe" --repair-webspace-security -webspace-name $domainName -all-filesystem-objects
      & "$env:plesk_cli\repair.exe" --reconfigure-web-site -web-site-name $domainName

    Run it to repair webspace security and reconfigure all websites.

8b661cab116c79dbe6c4ac5bbdf1c8cb 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 85a92ca67f2200d36506862eaa6ed6b8 a766cea0c28e23e978fa78ef81918ab8

Email subscription for changes to this article
Save as PDF