1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

rename domain problem

Discussion in 'Plesk for Windows - 8.x and Older' started by KLT_KKT, Sep 19, 2008.

  1. KLT_KKT

    KLT_KKT Guest

    0
     
    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\
     
  2. servertechs

    servertechs Guest

    0
     
    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
     
  3. arisd

    arisd Basic Pleskian

    23
    90%
    Joined:
    Jan 31, 2007
    Messages:
    60
    Likes Received:
    0
    servertechs, you are right - that works!!!

    Thanks...
     
  4. KLT_KKT

    KLT_KKT Guest

    0
     
    it's don't work for me. any body help.
     
  5. narendram

    narendram Guest

    0
     
    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
     
Loading...