Document Root Changes

We can no longer change the document root for your main (primary) domain. This prevents Fantastico from being able to install applications, breaks existing database configurations and causes many other issues. The document root can only be changed on addon domains and subdomains.

Change Document Root for an Addon or Subdomain

To change the document root for an addon or subdomain, you can do the following:

  1. Log into cPanel.
  2. In the Domains section, click Addon Domains or Subdomains depending on which you'd like to modify.
  3. In the Modify Domain section at the bottom of the page, click the  icon next to the current document root for the domain you wish to modify.
  4. In the popup window, enter the new document root and click Change.

Alternatives to Changing the Document Root for the Primary Domain

If you still want the root folder for your primary domain to be something other than public_html, you have two options:

  • Change the primary domain name on your account, then add the old primary domain as an addon domain. This way, you can pick the root folder you want for the primary domain/new addon domain; however, the new primary domain will still point to public_html.
  • Use mod_rewrite to automatically redirect your website visitors to a new default directory. The new folder name will appear in the URL (i.e. http://domainname.com/subfolder/).
It is highly recommended that you do NOT change your new document root to point to your home directory.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Mail Folder

SignedOn uses a maildir system, which means that all email boxes and messages are stored as...

How to Whitelist Your IP in cPanel for Remote MySQL Access

This tutorial will show you how to whitelist your IP to allow remote MySQL connections for...

How to change the password of your cPanel account

How to change the password of your cPanel account cPanel Plesk 10 There may be...

What is Fantastico?

Fantastico De Luxe is the leading auto installer for cPanel servers. With more than 10,000...

Need to review all the scripts in Fantastico?

To view all the scripts offered inside Fantastico, including each version and support links,...