Make account from addon domain
- Go to the addon domain list in cwm.admin and click on the Convert Addon Domain to Account
- You will be redirected to Create a New Account page where you will be able to enter a username and other configs.
Migration process will do the following:
- remove addon domain from the previous user
- change owner of all matching subdomains to the new user account
- copy content with rsync for that addon domain
- copy content with rsync of all subdomains for matching
- fix account permissions to match the new owner
- rebuild vhost configuration for all webservers (nginx, varnish, apache)
- reload webservers (nginx, varnish, apache)
Migration will not do:
- it will not copy databases
- it will not delete any files on the source account
- it will not modify any website files on the new location, meaning that you need to modify mysql connection details
- it will not modify dns records, it will leave them untouched
- it will not modify email accounts, meaning that emails for the addon domain will continue to work under the new user account.
Other info:
- All subdomains will use the new path location as /home/USERNAME/sub.domain.com
Manually
- remove addon domain from table root_cwp.domains (replace domain.com with domain name)
mysql root_cwp -e "DELETE FROM domains WHERE domain='domain.com';"
- create a new account with that domain name
- rsync files from old location to new, example:
rsync -av /home/old-user/domain/ /home/new-user/public_html/
- user for subdomains also needs to be changed including the path in root_cwp.subdomains database table
- rsync of data for all subdomains
- run fix account permissions from cwp.admin
- at end rebuild all vhosts