cpanelmultiple-domains

How do I add another domain but not to the public_html folder in cpanel?


When I try to add another domain to the account the public_html folder is already grayed out near the document root input. how can I put the domain as a sibling folder to the public_html folder?

What I see

So I will have 2 domains like this

1st domain - *root*/public_html/

2nd domain - *root*/anotherdomain.com/

Solution

  • A guy named cPanelRex from another place answered my question. I need to enable something from the higher-level account:

    WHM >> Tweak Settings by the "Restrict document roots to public_html" toggle. https://docs.cpanel.net/whm/server-configuration/tweak-settings/#domains