Plesk
kb: technical
ABT: Group B
Symptoms
Renaming a domain in Plesk fails with the following error:
Error: Unable to rename the domain: A virtual directory with the specified name already exists.
Cause
The directory chosen as a Docroot for the domain already exists.
Resolution
-
Log into Plesk
-
Rename the folder with the same name in the Home directory in Subscriptions > example.com > File Manager:
Alternatively, set another unique name for document root of the new domain.
Additional steps for Plesk on Linux
-
Connect to the server via SSH
-
Rename the folder with same name at
/var/www/vhosts/system/
with the following command:# mv /var/www/vhosts/system/rename.example.com/ /var/www/vhosts/system/rename.example.com_renamed/
Comments
2 comments
In windows servers rename/remove the folder with the same name
Check the server side and where the domain folders were created
for example
D:\Hosting...\...
Hello @Sina,
The solution in the article is applicable for Windows as well. It is possible to rename/remove the folder with the same name in vhosts directory through Plesk interface.
If you mean the place where Docroot located directly on the server, than you may access it using %plesk_vhosts% variable -- path to directory with virtual hosts (e.g., C:\Inetpub\vhosts).
Please sign in to leave a comment.