Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

domain to addon

Discussion in 'General Discussion' started by SiteBuilderHost, Feb 25, 2006.

  1. SiteBuilderHost

    SiteBuilderHost Registered

    Joined:
    May 13, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    I want to move my personal domains under one domain for a couple reasons I won't get into.
    Anyway, how would I move mydomain.com as a addon domain of maindomain.com?

    I want email, mysql dbs and content to be intact. Am I dreaming or is this possible?

    thanks,
    Scott
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. rustelekom

    rustelekom Well-Known Member
    PartnerNOC

    Joined:
    Nov 13, 2003
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    moscow
    you may do this by your hand, nothing special. but you will need shell access.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. SiteBuilderHost

    SiteBuilderHost Registered

    Joined:
    May 13, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    anybody have a step by step on how to do this? :eek:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. rustelekom

    rustelekom Well-Known Member
    PartnerNOC

    Joined:
    Nov 13, 2003
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    moscow
    very short:

    1) untar your old site backup under your new account.
    2) move files from httpddirectory to your new public_html folder
    3) if you have both accounts on same server, stop your mysql server and rename /var/lib/mysql/old_database_name to /var/lib/mysql/new_database_name (that it will same as your ne username). if you move accounts from another server you should create mysql database, user and assign user to new database and then do:

    mysql -u mysql_username new_mysql_database < pathtoyouruntarredbackup/mysql/old_databasesql dump file
    4) move /etc/, /mail folders from untarred backup to your cureent folder.
    5) chown -R newusername:newusername ./* all files under your new account folder
    6) edit your new /etc/passwd file and change path to your email boxes.
    7) edit /etc/userdomains and change ownership for your domain
    8) edit /var/cpanel/users/your_old_username and delete moved domain from list
    9) edit /var/cpanel/users/your_new_username and add moved domain to list

    should be enough i think (if i do not forgot anything :)

    PS. and you will need edit /etc/httpd/conf/httpd.conf and change DocumentRoot and also Userr and Group directives accordingly.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 rustelekom, Feb 26, 2006
    Last edited: Feb 26, 2006
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice