• Home
  • FAQ
  • Main Website
  • Forum
  • Facebook
  • YouTube
Control WebPanel Wiki
  • Home
  • FAQ
  • Main Website
  • Forum
  • Facebook
  • YouTube

Convert Addon Domain to Account

/Other /Convert Addon Domain to Account
  • April 2, 2019
  • Other

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

Tagged:Convert Addon Domain to Account

Related Articles

  • Update CURL to Latest version in CentOS

  • Disk Usage Check

  • Account Suspended

  • How to install ElasticSearch

  • How to create CWP iso image

  • cPanel Compatibility






Latest Articles

  • Update CURL to Latest version in CentOS
  • How to update Netdata in CWP
  • How to create a wildcard subdomain with NGINX and Apache
  • Can't log into CWP user/admin panel
  • PHP Installation Failing
  • MariaDB Upgrade from 10.2 to 10.4
  • Additional custom backup
  • CSF/LFD Firewall prevent blocking for your country
  • How to connect MySQL database remotely
  • Varnish Cache Test
  • Copy Local Backup to Google Drive
  • ClamAV Issues
  • MariaDB Upgrade to the new version
  • PHP Defender - Snuffleupagus
  • SSL installation failed
  • Disk Usage Check
  • WebServer Errors
  • Postfix Blacklist/Whitelist Domain or IP
  • CWP Security Advisor Config
  • How to install DKIM 2048 bits long key
  • Account Suspended
  • Improve website performance

Popular Articles

  • PHP compile errors
  • CWP Auto Logout
  • Internationalized Domain Name (IDN) Conversion Tools
  • Mod_UserDir
  • Run After Update Script
  • RoundCube (Internal Server Error)

Categories

  • 3rdParty 2
  • Apache 24
  • API 1
  • Backups 3
  • Clusters 4
  • Development 5
  • DNS 7
  • E-Mail 28
  • FTP 7
  • License 2
  • Load-Balancers 2
  • Migrations 4
  • MySQL 13
  • Nginx 3
  • Other 21
  • Other Databases 3
  • PHP 19
  • Python 3
  • Scripts 4
  • Security 31
  • shell-scripts 1
  • SSL/AutoSSL 3
  • Testing 2
  • Updates 6
  • User-Panel 6
  • Varnish 2

Add your Article

Want to Contribute?
Submit your Article and Get Rewarded

Joint CWP Team
Join Our Development Team
Join Our Support Team
Join Our Marketing Team
Join Our Designers Team
Join Our Documentation Team

Languages

en English
ar Arabiczh-CN Chinese (Simplified)hr Croatiannl Dutchen Englishfr Frenchde Germanit Italianpt Portugueseru Russianes Spanish

Enterprise Linux Security

Enterprise Linux Security
Linux Security and Stability Systems
  • Home
  • FAQ
  • Main Website
  • Forum
  • Facebook
  • YouTube
© Copyright, CWP Wiki