Plesk for Windows
Plesk for Linux
kb: technical
ABT: Group B
Applicable to:
- Plesk for Linux
- Plesk for Windows
Symptoms
Domain renaming in Plesk fails with error:
PLESK_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/remove the folder with the same name in vhosts directory in Subscriptions > example.com > File Manager:
Alternatively, set another unique name for document root of the new domain.
Note: For Linux, the folder may be also located in /var/www/vhosts/system/
directory as it is used to store config and log files of the domains, and it should me renamed as well:
-
Connect to the server via SSH.
-
Rename the needed folder:
# 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.