I went into cPanel to add an addon domain that points to a sub-directory, but all that is available in cPanel is to park domain at the document root which is 'public_html/'. ; A Change Document Root pop-up window will appear. Navigate to: Home »Account Functions »Modify an Account. Domain không tự tạo Document Root riêng mà lại vào / như ảnh đính kèm.. Với lỗi này bạn không thể sử dụng, và các thao tác chỉnh sửa từ user cPanel. Click Addon Domains; In the Modify Addon Domain section, click the blue pencil icon in the Document Root column for the addon domain you want to edit. path: /home/username/public_html/subdir/cgi-bin. Delete the old directory name. Addon domains are easy to change the document root. -- CRITICAL -> Create a backup of the account with the following instructions: 2. If you see a different cPanel layout, it's because … There are two types of domains on a cPanel box that can have document roots: Main (primary) domains and Addon domains. How to Change your Domain’s Nameservers. Click on Addon Domains in cPanel. Double-click on the pencil icon under the Document Root column beside the domain you’d like to modify. Type in the new folder you’d like to have that domain pull its files from, and click Change. You should now see a pop-up in cPanel saying it’s updating the document root. Vừa rồi mình gặp mốt số case khi addon domain vào cPanel tuy nhiên trong quá trình addon domain phát sinh lỗi. Step 1: Login to your cPanel account and search for the Domains' section. The secondary domain name now displays the index file you uploaded to that folder. Active Oldest Votes. Modify these two lines to change the document root of your primary domain to a sub-directory inside “public_html” directory. For Changing the Document Root of Addon Domain. What is an Addon domain anyway? To do so, simply click the “Edit” icon next to the path, and type in your new path. Let’s say you decide to change the Document Root of your “addon” domain after you’ve added the addon domain in cPanel. 4. To modify the document root for an addon domain, perform the following steps: Click the edit icon for the addon domain that you wish to manage under the Document Root column. Save the file after changes are made and then delete the cache file for your primary domain. Next, edit the Addon domain path. You should now see a pop-up in cPanel saying it’s updating the document root. Enter the new document root in the Document Root field and click the Change … Log in to your cPanel account. Locate the domain to change the document root for under "Modify Addon Domain" or "Modify a Subdomain". 2. 2. 3. Under Modify Addon Domain, next to the domain you want to change, click the pencil. To change the root directory of Addon domain, in the cPanel -> “Domains” section, click the Addon Domain and update the new document root in the popup window. Click the pencil icon () that corresponds to the subdomain that you want to manage. 3. For changing the main/primary domain, you will need to have root SSH access and be able to locate and edit the following file (replacing your user & domain info): /var/cpanel/userdata/USERNAME/DOMAIN.COM. Scroll down to the Domains sections and click on Addon Domains. There are two types of domains on a cPanel box that can have document roots: Main (primary) domains and Add-on domains. cPanel’s default primary domain’s document root is: /home/USERNAME/public_html. We need to configure your server/domain’s document root to the /home/USERNAME/public_html/public. Create that username in this text box b. Remove any subdomains of the primary domain. Enter the new file path that you want to use as the document root in the available text box. For example, .com and .net. Related steps 2. A cPanel hosting account always has a root domain, also known as a primary domain, but you can also host Addon domains or subdomains with the same account. To create an addon domain, follow these steps: In the DOMAINS section of the cPanel home screen, click Addon Domains : Under Create an Addon Domain, type the domain name in the New Domain Name text box. Login to cPanel and click Addon Domains; In the field to the right of "New Domain Name", type the domain name you wish to park on top of your addon domain; Click outside the text box and your other settings will populate. Tip: You can click the document root name in cPanel to go to the correct folder in the File Manager. 3: If you want to create separate FTP account for this domain, you need to check the box and enter your desired username and password. cPanel will automatically populate the “Subdomain” and “Document Root” text boxes. 5. In the cPanel Home page, click Domains and then select Addon Domains. Next, edit the Add-on domain path. 1. To create the addon domain, perform the following steps: Enter the new addon domain's name in the New Domain Name field. Under Modify Addon Domain, next to the domain you want to change, click the pencil. documentroot: /home/username/public_html/subdir. Enter the addon domain’s name in the “New Domain Name” text box. That will create your Addon domain. Click Change. In the cPanel Home page, click Domains and then select Addon Domains. Login to WHM as the root user. Changing Addon Domains. Enter a new document root, starting at your home directory, and then click Change. Changing Add-on Domain. It’s that simple! If you want to change the document root directory for an addon domain, do not follow the procedures below. For instance, if the cPanel account is moved or restored, the document root change will no longer exist, which may cause your website to behave … You can delete these 2 DNS records or … Log in to cPanel. Simply log into your cPanel and navigate to: Domains » Addon domains. To Set up an Addon Domain. Click on Addon Domains in cPanel. Simply log into your cPanel and navigate to: Domains >> Addon domains. In the Domains section, click the Addon Domains or Subdomains icon, depending on which you'd like to modify. As you can host multiple domain names in cPanel (addon domains and subdomains), you need to have a unique folder for each domain. Changing the document root for Addon domains is easy. You would navigate back to the Addon Domain’s page, scroll to the bottom where you see a heading for Modify Addon Domain. Modify the document root for an addon domain To modify the document root for an addon domain: Click the notepad icon that corresponds to the addon domain that you wish to manage. Procedure Log in to the cPanel account the addon or sub-domain is located in. Changing the document root for Add-on domains is easy. Simply log into your cPanel and navigate to: Domains >> Addon Domains. Next, edit the Add-on domain path. To do so, simply click the “Edit” icon next to the path, and type in your new path. Changing the document root for Add-on domains is easy. Log in to cPanel. Under "Document Root:", erase everything except "public_html" Look down to your current addon domain and its "Document Root" To modify the document root for a subdomain, perform the following steps: 1. Note: This modification changes the lo… Type in the new folder you’d like to have that domain pull its files from, and click Change. Your addon and subdomain names will be rooted to their own folders inside public_html. 1. Click the pencil icon next to the current document root for the domain you wish to modify. Edit the Document Root field and hit the Change button. Access the "Addon Domains" or "Subdomains" interface depending on the domain. Click on the Submit button to add a domain or on the Submit and Create Another Domain button if you wish to add another one. Locate the addon domain (or subdomain) you wish to modify. An addon domainis a fully functional (You cannot delete the primary domain.) The Change Document Root window will pop up. After you create an addon domain or subdomain, you can find the document root inside cPanel by clicking on the Addon Domains or Subdomains icon. In cPanel, the document root for any addon domain can be changed directly from the Addon Domains page. Enter a new document root, starting at your home directory, and then click Change. Click on the Addon Domains icon to add a new addon domain. Click the Managelink to the right of a domain to open the management page: The management page includes options to change the document root for the domain and to delete the domain. Under Modify Addon Domain, next to the domain you want to change, click the pencil. The secondary domain name now displays the index file you uploaded to that folder. Note: … … To do so, simply click the edit icon next to the path, and type in your new path. Instead, use cPanel to change the addon domain's document root directory. To change the document root for a domain, Addon Domains Step 1 - Log into cPanel and click on the Addon Domains icon. Changing Primary domains (Dedicated Server) The second method uses.htaccess redirection, and can be configured in cPanel. Enter the path to the addon domain’s new document root directory in the available text box. 3. Double-click on the pencil icon under the Document Root column beside the domain you’d like to modify. Step 2: Locate your chosen Add-On domain, click the 'edit' icon at the end of the current document route. Why Change the Root Domain’s Document Root? Finally click “Add Domain”. Changing the Document Root of an “Addon” Domain. Log in to cPanel. Step 3 - You will see this pop-up box. But on the Primary domain, it’s a bit tricky, since you cannot change the Document Root, without the root access to the server. Creating a Sub-domain 3. 1. 3. cPanel backup and restore packages use the default settings and will NOT save your document root changes. Step 1: Login to your cPanel account and click on the 'Addon Domains' icon under the Domains tab. () Enter the new file path to the addon domain’s document root … It can be done in your cPanel account in the following way: Go to your cPanel account > Domains section > Zone Editor menu: Click Manage next to the main domain name: Find A records for the subdomain in the list. Next, edit the Addon domain path. If you wish to adjust the subdomain you can, this will allow you to create multiple addon domains with that username, but different extensions. Enter a new document root, starting at your home directory, and then click Change. If you want to change the document root you can edit from “Document Root” box. On the Addon domain, you can just point the root directory to a public folder like this, by clicking on the pencil logo on Document Root. But cPanel offers a feature where website owners can change the default document root for addon domain during creation or after creating it from the cPanel. To change the root directory of Addon domain, in the cPanel -> “Domains” section, click the Addon Domain and update the new document root in the popup window. 2. Creating symlinks I currently have a domain name pointing to my name servers. The most common reason to move the document root is to give the site its own directory under public_html . In this article we’ll explain how to change the directory your addon domain points to in cPanel. 4. A customisable file path will appear. Step 2 - Click on the pen icon at the edge of the document root. How to Change the Document Root for an Add-On Domain. VERY IMPORTANT: Changing a primary domain’s document root is NOT RECOMMENDED by InMotion Hosting. Procedure. After you create an addon domain or subdomain, you can find the document root inside cPanel by clicking on the Addon Domains or Subdomains icon. Simply log into your cPanel and navigate to: Domains >> Addon Domains. To create multiple addon domains with the same username and different extensions (I.E. The secondary domain name now displays the index file you uploaded to … When information is entered into this field, cPanel will automatically populate the Subdomain and Document Root fields . 4 Answers4. In simple words, web frameworks are a set of components designed to Enter the new file path that you want to use as the Document Rootin the available text box. example.com, and example.net), manually … Go to the Modify Addon Domain section and click on the document root’s edit icon of the addon domain you want to change. To create a new document root for your domain/subdomain, untick the Share document root with "main_domain.tld" option and specify the directory where you want the files for this domain to exist. In the “Domains” section, click the “addon Domains” link or icon. So traffic coming from the parked domain would get the wrong content, which is obviously not good. The Subdomain and Document Root text boxes will automatically be created by the cPanel application a. In the cPanel Home page, click Domains and then select Addon Domains. For more information about how to do this, please see this article. Change cPanel root directory of Addon domain 2.