SOLVED - Moving web sites from one admin to another?

dorucrisan

Verified User
Joined
Oct 23, 2021
Messages
192
Location
Bucharest / Romania
I used to have one single admin account and many web sites on it. The backup/restore crashed regularly due to big size (almost 500G). I created several other admin accounts, like admin2, admin3...admin5. I want to split the web sites equally under those new admin accounts in order to have separate backups and smaller archives. How can I do that please? "Move users between resellers" does not seem to be applicable.
 
Hello,

Try this one CLI:

Code:
# /usr/local/directadmin/scripts/move_domain.sh
Move Domain to User - v. 0.3

Usage:
/usr/local/directadmin/scripts/move_domain.sh <domain> <olduser> <newuser>
you gave #0: /usr/local/directadmin/scripts/move_domain.sh
 
The script does not move MySQL DBs though. So it's up to you.

1. create a new user
2. move domain with the mentioned script
3. create a new DB
4. dump/restore MySQL DB under new user
5. update settings in MySQL DB for new paths
6. update PHP scripts to use new MySQL DB.
7. test everything
 
Directadmin does not know anything about relations between PHP and DB yet. That's up a to a human to do the things still.
 
I have done that, domain was moved to the new created admin name, loaded db, changed db name in php script....done all but web site does not show up, only receive this message : Apache is functioning normally . Everything else looks OK, files in place correctly (moved) db loaded...all.
 
Either your another admin has a different IP (and now DNS and webserver are using different IPs) or apache/nginx/litespeed failed to restart. A webserver might fail to restart if such a restart brings it down due to error, typo or another event.
 
The server sits on a single IP. I am now moving another domain (the 3rd) and after finishing I willl reboot, maybe will help. Also maybe DA needs some time to refresh??
 
If a webserver fails to restart due to an error or typo, a reboot will most likely bring the webserver down. You should investigate the issue by yourself or get somebody to do it for you.

The easiest way to see what might be wrong is to try and restart the webserver from CLI as root. Try and see what it says.
 
Did that, nothing happened, same "Apache is functioning normally" on those 3 domains that I moved, all others working OK. I checked DNS records of the moved domains, all OK, showing the server IP. All 3 domains responds to ping with server IP and zero loss.
 
Back
Top