This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Move domains between clients
#7
RE: Move domains between clients
If anyone wants to do this manually - heres how I did it (replace the CAPITALS with your values)

'Login to PHPmyAdmin as root, 'SQL' tab, select sentora_core database
'Get old userid and dir name

Code:
SELECT vh_acc_fk,vh_directory_vc FROM x_vhosts WHERE vh_name_vc= 'DOMAIN.com'


'Get new userid

Code:
SELECT  ac_id_pk FROM x_accounts WHERE ac_user_vc = "NEW_USERNAME"


'SSH to server, and move files
' Move website files

Code:
mv /var/sentora/hostdata/OLD_USERNAME/public_html/DOMAIN_com /var/sentora/hostdata/NEW_USERNAME/public_html/DOMAIN_com


'Move logs

Code:
mv /var/sentora/logs/domains/OLD_USERNAME/DOMAIN_com-*.log /var/sentora/logs/domains/NEW_USERNAME/


'Using PHPmyAdmin 'SQL' tab, select sentora_core database
'Update vhost

Code:
UPDATE x_vhosts SET vh_acc_fk = 'NEW_USERID' WHERE vh_name_vc = 'DOMAIN.com'


'Update mailbox

Code:
UPDATE x_mailboxes SET mb_acc_fk = 'NEW_USERID' WHERE mb_address_vc like '%@DOMAIN.com'


'Update ftp

Code:
UPDATE x_ftpaccounts SET ft_user_vc = 'NEW_USERID' WHERE ft_directory_fc like '%DIRNAME'


'Update email forwarders

Code:
UPDATE x_forwarders SET fw_acc_fk = 'NEW_USERID' WHERE fw_address_vc like '%@DOMAIN.com'


'Update DNS

Code:
UPDATE x_dns SET dn_acc_fk = 'NEW_USERID' WHERE dn_name_vc = 'DOMAIN.com'


'Update D Lists

Code:
UPDATE x_distlists SET dl_acc_fk = 'NEW_USERID' WHERE dl_address_vc like '%@DOMAIN.com'


'Update Aliases

Code:
UPDATE x_aliases SET al_acc_fk = 'NEW_USERID' WHERE al_address_vc like '%@DOMAIN.com'


' Force apache reload

Code:
UPDATE x_settings SET so_value_tx='true' WHERE so_name_vc='apache_changed'
Reply
Thanks given by: 01generator


Messages In This Thread
Move domains between clients - by modcar - 09-14-2015, 09:51 PM
RE: Move domains between clients - by Ron-e - 09-15-2015, 01:13 AM
RE: Move domains between clients - by modpluz - 09-15-2015, 04:28 AM
RE: Move domains between clients - by modcar - 09-18-2015, 04:44 PM
RE: Move domains between clients - by modcar - 09-22-2015, 08:06 PM
RE: Move domains between clients - by modpluz - 10-03-2015, 03:15 PM
RE: Move domains between clients - by modcar - 10-24-2015, 12:13 PM
RE: Move domains between clients - by fairbanksk - 10-24-2015, 10:26 PM
RE: Move domains between clients - by petersondsz - 10-09-2016, 11:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Postfix relay specific domains to mailjet johnnyp 0 2 ,380 01-29-2021, 04:44 AM
Last Post: johnnyp
Disabling warning and notice logging in /var/sentora/logs/domains/* JSmith 0 2 ,776 01-02-2021, 07:50 PM
Last Post: JSmith
Add on Domains not working but Main domain works luckyviet 2 6 ,370 03-18-2020, 07:38 PM
Last Post: AanaNahum

Forum Jump:


Users browsing this thread: 3 Guest(s)