Symptoms
-
When renaming a domain from old-example.com to example.com, the operation fails with the following error message appears in Plesk:
Error: Site old.example.com does not exist
at (WebServerManager::renameHosting line 3083)
at renameHosting(old.example.com, example.com)(WebServerManager::renameHosting line 3122)
at execute console command --rename-vhost(vconsoleapp::start line 122)
at execute "C:Program Files (x86)ParallelsPleskadminbin64websrvmng" --rename-vhost "--vhost-config=tmp2811.tmp" "--old-name=old-example.com"(vconsoleapp::run line 139) (Error code 1)
Error: websrvmng failed: Site old-example.com doesn't exist
at (WebServerMap::get line 189)
at startHosting(old-example.com)(WebServerAdapter::startHosting line 772)
at execute console command --start-vhost(vconsoleapp::start line 122)
at execute "C:Program Files (x86)ParallelsPleskadminbin64websrvmng" --start-vhost "--vhost-name=old-example.com"(vconsoleapp::run line 139)
(Error code 1) -
The "plesk repair web" utility fails with the error message below:
C:> plesk repair web old-example.com
Repairing web server configuration
Repairing web server configuration for the domain
old-example.com ............................................... [FAILED]
- Filename:
?C:Inetpubvhostsold-example.comhttpdocsweb.config
Line number: 14
Error: Configuration file is not well-formed XMLIn module
Exception type: System.Runtime.InteropServices.COMException
<...> -
There is no old-example.com site in IIS Manager > SERVERNAME > Sites.
-
In some cases, the folder of the domain old-example.com is already renamed to example.com in %plesk_vhosts%.
Cause
Invalid website configuration in IIS or domain's web.config file.
Resolution
-
Connect to the Plesk server via RDP.
-
If the folder example.com already exists in
%plesk_vhosts%
, rename it to old-example.com. -
Rename domain's file
web.config
toweb.config.orig
. -
Start Internet Information Services (IIS) Manager at Windows Start > All Programs > Administrative Tools.
-
In IIS Manager, expand SERVERNAME > Sites > right-click on example.com > click Remove.
-
Start a command prompt as an Administrator and repair the website old-example.com:
C:> plesk repair web old-example.com
-
Repair password-protected directories:
C:> "%plesk_cli%repair.exe" --synchronize-protected-directories-storage
-
Log in to Plesk and rename the domain to example.com.
-
Rename
web.config.orig
back toweb.config
.