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.

Create Subdomain for each new account

Discussion in 'General Discussion' started by wilson18, Mar 4, 2014.

  1. wilson18

    wilson18 Member

    Joined:
    Mar 4, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Everyone

    I am quite new to CPanel and WHM so if this is a stupid question then please forgive me. I have been searching around the interwebs and I still haven't been able to find anything that a

    When a new account is created is added for domain.com I would like to automatically create a sub.domain.com and have some files that are included in there by default. This is just for one of the reseller accounts. Is this possible?

    Thank you
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    1. The inclusion of files during account creation is achievable through the use of a skeleton directory with the reseller account. Documentation on this is available at:

    cPanel - Skeleton Directory

    Note that this document explains how to set it up for the "root" account. You would use the reseller account username instead of "root" if setting it up for a reseller account.

    2. The automatic addition of a subdomain during account creation might be a little more difficult for a new user. It involves using a post account creation hook as documented here:

    Standardized Hooks - Intro

    You may want to hire a developer to implement something like this for you.

    Thank you.
     
    #2 cPanelMichael, Mar 4, 2014
    Last edited by a moderator: Feb 3, 2015
  3. wilson18

    wilson18 Member

    Joined:
    Mar 4, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thats brilliant, thank you for getting back to me. Have a great day!
     
Loading...

Share This Page