• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Move Domains From one Client to New Client

T

tekmage

Guest
How do I do that without having to recreate everything? Do I use the migration program?
 
look at the commandline tools documentation - you can do that with them

domain.sh -u DOMAIN -clogin NEWCLIENTLOGIN

(or something like that)
 
Hi,

The first section works. I am sure the other sections do also but haven't tried them yet...just from some notes I had.

SSH into the server as root and log into the psa database via the mysql client

mysql -u admin -p`cat /etc/psa/.psa.shadow` psa

You must end every MySQL command with a ; The line -> is saying that the
command is not a complete command.

Identify the client ID of the client you create in psa.
The client ID is stored in the clients table:

mysql> select * from clients;

The domain ID is stored in the domains table:

mysql> select * from domains;

Once you have the ID's, you need to do the following:

update domains set cl_id = 8 where id = 16;

(I derived the 16 by doing a select on domains and finding the 2cheer4.com domain).

Pooof... the domain is now owned by the new client.



FROM PLESK FAQ'S:

RPM build:

# /usr/bin/mysql -u admin -p`cat /etc/psa/.psa.shadow` -e "SELECT cname, pname, login, id from clients WHERE login = '[psa client login]';" psa

This command retrieves the company name, client name, login and client id, and may be
piped to a file by adding >[filename] after it. After you have retrieved client's id,
execute the following:

RPM build:

# /usr/bin/mysql -u admin -p`cat /etc/psa/.psa.shadow` -e "UPDATE domains SET cl_id = [client id] WHERE name = '[domain name]';" psa

==========================================================

FROM FORUMS:

http://forum.sw-soft.com/showthread.php?s=&threadid=17873

Please use a official Plesk CLI (/usr/local/psa/bin/domain.sh)

It is capable of correct switching domain to different client:

/usr/local/psa/bin/domain.sh -u <domain> -clogin <client_login>
 
Back
Top