• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

rename domain problem

K

KLT_KKT

Guest
When i try to rename domain i get the following error:

Unable to rename the domain: Execute mailmng --turn-on-domain "--domain-name=olddomain.ltd" failed: MEAOSM.Domain.GetDomain failed
The system cannot find the file specified. (Error code 2) at GetNamedSecurityInfo(C:\Program Files\SWsoft\Plesk\Mail Servers\Mail Enable\Postoffices\olddomain.ltd)

event log:

Can't query SELECT s.id, s.dom_id, s.sys_user_type, s.name, s.displayName, s.server_id, u.login, a.password, s.coldfusion, s.ssi, s.ssi_html, s.php, s.php_handler_type, s.php_version, s.cgi, s.perl, s.python, s.asp, s.asp_dot_net, s.managed_runtime_version, s.miva, s.fp, s.fp_enable, s.fp_no_index, s.htype, s.www_root, s.webstat FROM ( subdomains s INNER JOIN sys_users u ON u.id = s.sys_user_id ) LEFT OUTER JOIN accounts a ON a.id = u.account_id WHERE (s.dom_id = ): MySQLDatabaseProvider error 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
at (MySQLDatabaseProvider::query line 284)
at enumDomainSubdomains(olddomain.ltd)(VHostManager::renameSubdomainDomain line 214)
at execute console command --rename-subdomain-domain(vconsoleapp::start line 129)
at execute "C:\Program Files\SWsoft\Plesk\admin\bin\vhostmng" --rename-subdomain-domain "--old-domain-name=newdomain.ltd" "--new-domain-name=olddomain.ltd"(vconsoleapp::run line 140)
Execute file name: C:\Program Files\SWsoft\Plesk\admin\bin\vhostmng.exe

Execute vhostmng --rename-subdomain-domain --old-domain-name=newdomain.ltd --new-domain-name=olddomain.ltd failed: Can't query SELECT s.id, s.dom_id, s.sys_user_type, s.name, s.displayName, s.server_id, u.login, a.password, s.coldfusion, s.ssi, s.ssi_html, s.php, s.php_handler_type, s.php_version, s.cgi, s.perl, s.python, s.asp, s.asp_dot_net, s.managed_runtime_version, s.miva, s.fp, s.fp_enable, s.fp_no_index, s.htype, s.www_root, s.webstat FROM ( subdomains s INNER JOIN sys_users u ON u.id = s.sys_user_id ) LEFT OUTER JOIN accounts a ON a.id = u.account_id WHERE (s.dom_id = ): MySQLDatabaseProvider error 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
at (execUtil line 133)
at Execute C:\Program Files\SWsoft\Plesk\admin\bin\vhostmng --rename-subdomain-domain --old-domain-name=newdomain.ltd --new-domain-name=olddomain.ltd(execUtil line 153)
at execute console command --rename-domain(vconsoleapp::start line 129)
at execute "C:\Program Files\SWsoft\Plesk\admin\bin\subdomainmng" --rename-domain "--old-domain-name=newdomain.ltd" "--new-domain-name=olddomain.ltd"(vconsoleapp::run line 140)
Execute file name: C:\Program Files\SWsoft\Plesk\admin\bin

MEAOSM.Domain.GetDomain failed
at (MailEnable::eek:penDomain line 86)
at execute console command --turn-on-domain(vconsoleapp::start line 129)
at execute "C:\Program Files\SWsoft\Plesk\admin\bin\mailmng" --turn-on-domain "--domain-name=olddomain.ltd"(vconsoleapp::run line 140)
Execute file name: C:\Program Files\SWsoft\Plesk\admin\bin\mailmng.exe

Execute mailmng --turn-on-domain "--domain-name=olddomain.ltd" failed: MEAOSM.Domain.GetDomain failed
at (domainmng::mail_on_off line 267)
at Turn on domain olddomain.ltd (state=3)(domainmng::turnDomain line 141)
Execute file name: C:\Program Files\SWsoft\Plesk\admin\bin\domainmng.exe


my system:
window server 2003
plesk 8.6.0.1
Mail dir change to D:\postoffices\
web dir change to D:\vhosts\
 
Run this command from plesk admin bin , This is will reconfigure the domain in IIS.

websrvmng.exe --remove-vhost --vhost-name=domain.com
websrvmng.exe --reconfigure-vhost --vhost-name=domain.com
 
rename domain

Could you tell me in admin panel where do i have to type this command

websrvmng.exe --remove-vhost --vhost-name=domain.com
websrvmng.exe --reconfigure-vhost --vhost-name=domain.com
 
Back
Top