Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    944
    cPanel/Enkompass Access Level

    Root Administrator

    Default change normal domain to addon domain?

    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

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge myusername's Avatar
    Join Date
    Mar 2003
    Location
    chown -R us.us *yourbase*
    Posts
    712
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    *** use at your own risk ***

    One way would be to:

    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)
    Where userdir is the existing site, and newuserdir is the master account where you want the old main site to become an addon.

    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

    Code:
    cd /home
    mv userdirbackup userdir
    if all works well for you once you create the addon domain you can remove the backup from the home directory.

    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

  3. #3
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    944
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge myusername's Avatar
    Join Date
    Mar 2003
    Location
    chown -R us.us *yourbase*
    Posts
    712
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    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

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 01-09-2010, 02:33 AM
  2. How do I change parked domain to addon domain?
    By mtindor in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-22-2008, 01:03 AM
  3. Moving Addon Domain to Normal Domain
    By flashweb in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-26-2007, 03:26 PM
  4. Converting an Addon domain to a normal account
    By Bruce in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-03-2006, 03:18 PM
  5. addon domain and nameserver change
    By shann in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-03-2006, 10:23 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube