Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jan 2010
    Posts
    52

    Question Moving sub domain to be another account's add on domain

    Dear all,

    We're having a domain name, let's just say it "domain.com" in an account "main". In that account we had a sub domain "download.domain.com". Few days ago we decided to move all our download sub domains from all of our domains to a separate account called "download".
    So we are planning to move download.domain.com sub domain from account "main" to be an add on domain on account "download".
    As another note we will need all webalizer and awstats from old account to be able to be access in new account.

    Currently we are planning to:
    1. Copy all stuff from main/public_html/download1 to download/public_html/download1
    2. Copy all log files from main/tmp/.../download.domain.com to download/tmp/.../download.domain.com
    3. remove sub domain download.domain.com from account "main"
    4. create addon domain download.domain.com at account "download"

    My question is:
    1. is it the correct way to do it?
    2. is there any foolproof way to do it that better than ours?
    3. when I remove sub domain from an account, will it remove all files and logs from that sub domain?

    any help appreciated.

    regards,

    Yoachan

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Moving sub domain to be another account's add on domain

    Hello Yoachan,

    1. Yes, what you have noted would be the best course of action to copy the data and the statistical information.

    2. I cannot think of a better method than the one you've noted to copy the information you are wanting to the new account.

    3. Removing a subdomain does not remove the public_html/subdomain folder contents. Since you would have copied the contents to the new location anyway, this should not pose any issue regardless.

    I would suggest taking a full account backup of the main account before doing anything in case you do run into any issues at all. Also, if you need the email data for any reason, please note it would be at /home/main/mail/domain.com/* and /home/main/etc/domain.com/* locations.

    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Jan 2010
    Posts
    52

    Default Re: Moving sub domain to be another account's add on domain

    @cPanelTristan:
    Thanks for your ansewer.
    I'll do a sync than execute it.

    my regards,

    Yoachan

  4. #4
    Member
    Join Date
    Jan 2010
    Posts
    52

    Default Re: Moving sub domain to be another account's add on domain

    @All: By the way,
    I'm having a new problem.
    I have an account called "domain" with main domain "domain.com".
    I can't create an add on domain that was part of "domain.com" on other account.
    So I can't create an add on domain "download.domain.com" in account "download".

    I got an error:

    Code:
    Error from park wrapper: Sorry, subdomains of the hostname cannot be parked.
    As a note, my machine's name is "machine.domain.com". I don't know which part that caused cpanel to refuse my add-on domain. Is it because of other account's main domain or is it because of my machine's name, or else...

    Does anyone have any ideas how can I add an add on domain "download.domain.com" in my download account?

    thanks and regards,

    yoachan
    Last edited by yoachan; 03-29-2011 at 05:57 AM. Reason: add machine's name

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Moving sub domain to be another account's add on domain

    Hello yoachan,

    You will need to enable this setting in WHM > Tweak Settings area:

    Allow users to park subdomains of the server’s hostname main domain.
    Set this to "On" and then try to add the subdomain onto the other account.

    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    Member
    Join Date
    Jan 2010
    Posts
    52

    Default Re: Moving sub domain to be another account's add on domain

    Dear Tristan,

    Thanks for your answer,
    at first I have a little doubt that it will create a security issue...
    I wonder if it was save, why cpanel put this option with "no" as default option?

    It works though.

    thanks.

  7. #7
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Moving sub domain to be another account's add on domain

    You are welcome to change it back after you've gotten it to add. The main reason it has "off" is that normally you do not want non-privileged users (basic cPanel account users) creating subdomains off your main domain. I don't think this is a security issue, though, it's more of a trying to prevent them from creating subdomains you might want to use on your main domain and locking you out of being able to create those, which is why it's default to off.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  8. #8
    Member
    Join Date
    Jan 2010
    Posts
    52

    Default Re: Moving sub domain to be another account's add on domain

    @Tristan:
    That makes a lot of sense.
    again, thanks for your help.

Similar Threads & Tags
Similar threads

  1. Moving an addon domain to it's own account - novice!
    By MPSc in forum New User Questions
    Replies: 11
    Last Post: 01-28-2011, 08:58 AM
  2. Moving domain from reseller to its own account
    By binky in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 08-03-2006, 04:49 PM
  3. moving customer add-on domain
    By ourweb in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-22-2005, 01:07 PM
  4. Moving an 'addon domain' to its own account
    By JMusic in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-01-2005, 09:08 PM
  5. Moving Database from Stand-alone Domain to Add-on Domain
    By Lamar in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-13-2005, 03:35 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube