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!

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

    Feb 29, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Reseller Owner

    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?

  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Not yet - here's our feature request thread for that so you can stay updated about this:

    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

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