- Plesk for Linux
- Plesk for Windows
Domain renaming in Plesk fails with error:
PLESK_ERROR: Error: Unable to rename the domain: A virtual directory with the specified name already exists.
The directory chosen as a Docroot for the domain already exists.
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/