Cobra Forum

Plesk Panel => Webserver => Topic started by: mahesh on Dec 12, 2024, 05:54 AM

Title: Cannot rename domain in Plesk: Internal Server Error
Post by: mahesh on Dec 12, 2024, 05:54 AM
Symptoms
Internal Server Error

# plesk bin site –u example.com -new_name new.example.com
An error occurred during domain update: Unable to rename the domain:[/li]


exit status 1

ERR [panel] Unable to rename the domain: A virtual directory with the specified name already exists.
(Error code 1)
[2023-02-21 14:53:51] 318352:63f4936fd2b38 ERR [panel.ui] Site example.com already exists

Cause
There's an existing directory with the new domain name already in the /var/www/vhosts/system/ or /var/www/vhosts/ directory.

Resolution
Rename the existing directory:

#mv /var/www/vhosts/system/new.example.com/ /var/www/vhosts/system/new.example.com_renamed/
# mv /var/www/vhosts/new.example.com/ /var/www/vhosts/new.example.com_renamed/