The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating a new account using the former addon domain as a main domain

Discussion in 'cPanel Developers' started by odmink0, Mar 6, 2012.

  1. odmink0

    odmink0 Member

    Joined:
    Feb 29, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Russia
    cPanel Access Level:
    Reseller Owner
    Hello.

    Sometimes there is a situation when the client, which has an addon domain on his account, wants to create another account using this domain as a main one.
    Currently our support team handles such situations manually, but they are constantly asking developers to automate this.

    The whole task can be accomplished in several steps, which include, amongst others, backing up domain's data and restoring it in the new account's public_html directory. Looks like backup/restore could be automated using API2 (Fileman module).

    So everything looks sane, but before starting to mess with WHM/API2 functions, I'd like to ask two questions:
    • Isn't there some already available method of doing the same thing? I don't think that I'm the first with such a problem, so maybe somebody has a ready solution that could be shared.
    • Is there any better method for copying directory's contents (and probably archiving it) except using Fileman's functions?

    Thanks.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Not yet - here's our feature request thread for that so you can stay updated about this: http://forums.cpanel.net/f145/tool-migrate-addon-its-own-full-account-please-case-8970-a-157953.html

    There's always SSH or SFTP (File Transfer over SSH), just remember to change file ownership appropriately; on a machine running SuPHP and SuExec which is our default configuration, this would be user:user where user is the cPanel user's username
     
Loading...

Share This Page