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!

SOLVED How do I create a subdomain of an addon domain?

Discussion in 'General Discussion' started by DigitalEssence, May 27, 2019.

  1. DigitalEssence

    DigitalEssence Well-Known Member

    Joined:
    May 21, 2014
    Messages:
    46
    Likes Received:
    4
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi,

    I have a primary domain (primarydomain.com) with a subdomain of equipment.primarydomain.com and I have added an addon domain: secondarydomain.com and I also want a subdomain of this: equipment.secondarydomain.com but I can't get it to work.

    I just get the Sorry! cgi page when I try to visit it in the browser.

    My host suggest moving the addon domain's subdomain folder out of public_html into / and then edit the document root in cPanel > Modify a Subdomain. The docs say I should be able to do this and that the Home is the accounts home directory but when I type anything into this, eg "equipment" it defaults to /public_html/equipment. The docs only say not to use one of the system directories and that this should work.

    Am I being really silly here and missing something obvious? Surely I can add a subdomain to an addon domain!

    Thanks for your help as always.
     
  2. WHMBackupSolutions

    WHMBackupSolutions Member

    Joined:
    Feb 14, 2018
    Messages:
    12
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    England
    cPanel Access Level:
    Root Administrator
    Hi,

    I have done exactly what your trying to do.
    When setting up the sub-domain the document root text box defaults to equipment.yourdomain.com as you type into the field above. This creates a folder outside of your /home/cpaneluser/public_html/ and is located /home/cpaneluser/equipment.yourdomain.com/. Please double check and try adding a test index.html within the folder to confirm.
     
    DigitalEssence likes this.
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,459
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. DigitalEssence

    DigitalEssence Well-Known Member

    Joined:
    May 21, 2014
    Messages:
    46
    Likes Received:
    4
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi,

    yes thank you. All sorted and working.
     
    cPanelLauren likes this.
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