<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Control WebPanel Wiki &#187; Convert Addon Domain to Account</title>
	<atom:link href="https://wiki.centos-webpanel.com/tag/convert-addon-domain-to-account/feed" rel="self" type="application/rss+xml" />
	<link>https://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>Convert Addon Domain to Account</title>
		<link>https://wiki.centos-webpanel.com/convert-addon-domain-to-account</link>
		<comments>https://wiki.centos-webpanel.com/convert-addon-domain-to-account#comments</comments>
		<pubDate>Tue, 02 Apr 2019 21:22:02 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Convert Addon Domain to Account]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1134</guid>
		<description><![CDATA[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 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>Make account from addon domain</strong></p>
<p>- Go to the addon domain list in cwm.admin and click on the <strong>Convert Addon Domain to Account</strong><br />
- You will be redirected to <strong>Create a New Account</strong> page where you will be able to enter a username and other configs.</p>
<p><strong>Migration process will do the following:</strong><br />
- remove addon domain from the previous user<br />
- change owner of all matching subdomains to the new user account<br />
- copy content with rsync for that addon domain<br />
- copy content with rsync of all subdomains for matching<br />
- fix account permissions to match the new owner<br />
- rebuild vhost configuration for all webservers (nginx, varnish, apache)<br />
- reload webservers (nginx, varnish, apache)</p>
<p><strong>Migration will not do:</strong><br />
- it will not copy databases<br />
- it will not delete any files on the source account<br />
- it will not modify any website files on the new location, meaning that you need to modify mysql connection details<br />
- it will not modify dns records, it will leave them untouched<br />
- it will not modify email accounts, meaning that emails for the addon domain will continue to work under the new user account.</p>
<p><strong>Other info:</strong><br />
- All subdomains will use the new path location as /home/USERNAME/sub.domain.com</p>
<h3>Manually</h3>
<p>- remove addon domain from table root_cwp.domains (replace domain.com with domain name)</p>
<pre>mysql root_cwp -e "DELETE FROM domains WHERE domain='domain.com';"</pre>
<p>- create a new account with that domain name<br />
- rsync files from old location to new, example:</p>
<pre>rsync -av /home/old-user/domain/ /home/new-user/public_html/</pre>
<p>- user for subdomains also needs to be changed including the path in root_cwp.subdomains database table<br />
- rsync of data for all subdomains<br />
- run fix account permissions from cwp.admin<br />
- at end rebuild all vhosts</p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/convert-addon-domain-to-account/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
