News:

SMF - Just Installed!

Main Menu

Cannot rename domain in Plesk: Internal Server Error

Started by Suhitha, Sep 04, 2025, 03:54 AM

Previous topic - Next topic

Suhitha

Question: Cannot rename domain in Plesk: Internal Server Error


Applicable to:

  • Plesk for Linux
  • Plesk for Windows

Symptoms

  • Trying to rename a domain on the Plesk Control Panel returns:

Internal Server Error

  • Updating the domain on the command line returns:

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

exit status 1
  • The following entry is in /var/log/plesk/panel.log:
ERR [panel] Unable to rename the domain: A virtual directory with the specified name already exists.
  • In the %plesk_dir%admin\logs\php_error.log in Plesk for Windows:

(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/