I ran the suggested method of DA to move domains:
cd /usr/local/directadmin/scripts
./move_domain.sh domain.com olduser newuser
This is what happened on the server:
[: !=: unexpected operator
Moving domain data to the new user.
Setting ownership for domain.com domain.
Removing domain from old user.
Adding domain to new user.
Changing domain owner.
implement ip swap
In debug mode
Debug set to level 10
root priv set: uid:0 gid:0 euid:0 egid:0
pidfile written
staring queue
done queue
Updating email settings.
Can't open /etc/virtual/domain.com/majordomo/list.aliases: No such file or directory.
Can't open /etc/virtual/domain.com/majordomo/lists/*: No such file or directory.
Updating ftp settings.
Domain has been moved to new user.
After that the domain throws a 403 warning.
I tried this a while ago and had the same problem, I then had to reinstall the cms to get it working, but this site is just some html page, all static, no databases, no config files and still it does not work.
I need to move a number of sites away from the admin each to their own accounts.
I know I should not have set them up under the admin account, but I am just a self hoster who started couple of years ago and all worked fine until I had too many sites and now need to change some to other servers, so if anybody can help to get this script to work properly on freebsd, please help.
I have no problem with the databases left intact, I can understand that logic.
Or maybe there is another smart way to move domains to other user?
thanks!
cd /usr/local/directadmin/scripts
./move_domain.sh domain.com olduser newuser
This is what happened on the server:
[: !=: unexpected operator
Moving domain data to the new user.
Setting ownership for domain.com domain.
Removing domain from old user.
Adding domain to new user.
Changing domain owner.
implement ip swap
In debug mode
Debug set to level 10
root priv set: uid:0 gid:0 euid:0 egid:0
pidfile written
staring queue
done queue
Updating email settings.
Can't open /etc/virtual/domain.com/majordomo/list.aliases: No such file or directory.
Can't open /etc/virtual/domain.com/majordomo/lists/*: No such file or directory.
Updating ftp settings.
Domain has been moved to new user.
After that the domain throws a 403 warning.
I tried this a while ago and had the same problem, I then had to reinstall the cms to get it working, but this site is just some html page, all static, no databases, no config files and still it does not work.
I need to move a number of sites away from the admin each to their own accounts.
I know I should not have set them up under the admin account, but I am just a self hoster who started couple of years ago and all worked fine until I had too many sites and now need to change some to other servers, so if anybody can help to get this script to work properly on freebsd, please help.
I have no problem with the databases left intact, I can understand that logic.
Or maybe there is another smart way to move domains to other user?
thanks!