How to Build Subdomain Outside public_html in cPanel

April 11, 2024 / Domain and DNS

Building a subdomain outside public_html in cPanel offers enhanced security, organization, and flexibility for isolating sensitive content, testing new features, hosting multiple websites, and managing complex file structures.

Let us follow some simple steps:

  1. Log in to WHM.
  2. Select the “Server Configuration” category and click on the “Tweak Settings” sub-options.
    tweak settings
  3. You will enter a new page with multiple tabs.
  4. Under the “All” section, you can search “public_html” using the search box.
    All
  5. You will find the option “Restrict document roots to public_html [?]”. This is usually “On”; switch it to “Off”.
    restrict
  6. It stops users from creating subdomains outside their public html directory when set to “On”.
  7. Click on the “Save” button.
    Save

You can construct a subdomain outside public_html in cPanel, and should you encounter any difficulties, please do not hesitate to contact our support team.

Spread the love