• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Cannot rename domains

MicD531

New Pleskian
I'm trying to rename a domain in my panel and keep getting the following error:
Code:
Error: Execute websrvmng --rename-vhost "--old-name=domainb.com" "--new-name=domaina.com" failed with error code 1: External component has thrown an exception. In IIS7NativeProvider module Exception type: System.Runtime.InteropServices.SEHException at _CxxThrowException(Void* , _s__ThrowInfo* ) at IIS7ApplicationPools.copy(IIS7ApplicationPools* , auto_ptr<IApplicationPool>* , basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >* srcName, basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >* dstName)

Running
Code:
websrvmng --rename-vhost "--old-name=domainb.com" "--new-name=domaina.com"
in the Windows command line gives the following error:
Code:
Cannot find domain by name 'domaina.com'

Haven't found many leads on the web as to what this might be.
 
Last edited:
What about

subscription.exe --update example.com -new_name sample.com
 
You can try to change the domain name in plesk panel. In website and domains section click on hosting settings and change the domain name.
 
Back
Top