Hi
I have two accounts on my server (with email, databases, websites, etc), which I want to change from normal accounts, to add-on accounts for another domain.
How do I do this?
Hi
I have two accounts on my server (with email, databases, websites, etc), which I want to change from normal accounts, to add-on accounts for another domain.
How do I do this?
- cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
- Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
- Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
SoftDux- The Leaders in Software
Use the coupon: cpanel-06 to get 20% off our packages
*** use at your own risk ***
One way would be to:
Where userdir is the existing site, and newuserdir is the master account where you want the old main site to become an addon.Code:cd /home/userdir cp -af public_html /home/newuser/public_html/userdir cd /home mv userdir userdirbackup cd /home/newuser/public_html chown -R newuser.newuser userdir (if you run php as a cgi) or cd /home/newuser/public_html chown -R newuser.nobody userdir (if you run php as a module)
Then delete the old user from WHM.
Then go into cPanel for newuser and create the addon domain using userdir as the subdirectory.
If something does wrong you can restore the old account from backup OR recreate in in WHM then
if all works well for you once you create the addon domain you can remove the backup from the home directory.Code:cd /home mv userdirbackup userdir
But this method probably brings over a lot of unecesarry files so...
Last edited by myusername; 11-01-2006 at 02:26 PM.
GlowHost.com | Professional Managed Web Hosting Since 2002.
>> Fully Managed Dedicated, Cloud VDS, Reseller & Semi-Dedicated
>> Cloud Servers for Enterprise
What you say might work. I guess the only problem would come in with the emails (and all relevant configs, etc), since these are "controled" by the main account.
At this stage we might change the whole setup, so this might not be needed, seeing that it' might be more of a headache than anything else.
- cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
- Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
- Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
SoftDux- The Leaders in Software
Use the coupon: cpanel-06 to get 20% off our packages
Yeah thats why I said the unnecesarry files bit. I changed the above to deal with public_html only.
Sometimes you'll notice after creating the addon domains of a deleted site the mailboxes magically reappear. no idea why, and it doesn't always happen.
Last edited by myusername; 11-01-2006 at 02:50 PM.
GlowHost.com | Professional Managed Web Hosting Since 2002.
>> Fully Managed Dedicated, Cloud VDS, Reseller & Semi-Dedicated
>> Cloud Servers for Enterprise