# Subdomains
This document provides information about subdomains. Topics include creating subdomains, removing subdomains, subdomain statistics, usage logs, error logs, and creating FTP users for individual subdomains.
# Creating Subdomains
To create a subdomain, sign into the control panel and then click on the "Account Manager" icon, followed by the "Subdomain Managemant" link.
To create a subdomain, click on the "Add Subdomain" button.
In the above example we are creating newsub.sitehelper.com. enter your desired name, and press "Add Subdomain" button again.
You may also create sub.sub.sub.sub.domain.com.
Note: It may take up to five minutes for a new subdomain to become active.
# Uploading to a Subdomain
Each subdomain appears in public_html/subdomain-name. This means that your subdomain can also be accessed at http://www.yoursite.com/subdomain-name. You can upload to a subdomain folder in the same way you upload to any other folder: use FTP, FileZilla, File Manager, etc. You can find more info about uploading files to your website here.
# Removing Subdomains
To remove a subdomain, place a check next to the subdomain(s) you want deleted, then click the "Delete" button.
Then, check "Remove Directory Content" box if you want the subdomain directory and its files to be deleted.
If you don't check the box, the subdomain will stop working but the files and directory will remain intact.
# Subdomain Statistics
Beside each subdomain name is a "Stats" link (see above picture). This link will load Webalizer statistics. Please note that for the link to work:
- your subdomain must have some traffic (at least one hit)
- your subdomain must be more than one day old. Until these requirements are met, the "Stats" link will return a file not found error.
# Usage Log / Error Log
The "Usage Log" and "Error Log" links (see above picture) will take you to text version of each log file. The usage log provides the IP address of the requester, time and date of the request, and the description of the request. The "Stats" link (see Subdomain Statistics section) is a graphical version of the usage log. The error log provides information about unsuccessful requests and is useful for troubleshooting when the cause of the error is unknown.
The usage and error logs are accessible immediately after subdomain creation. You will see a blank box if there has been no subdomain activity.
# Creating FTP Users for Individual Subdomains
To restrict an FTP account to a single subdomain, follow these steps:
- Create the subdomain if you haven't done so already.
- From the main control panel menu in "Accout Manager" (see Create Subdomains section), click the "FTP Management" link.
- Click "Create FTP Account" button.
- In the "FTP Username" field, enter the subdomain name (without .yourdomain.com).
- Enter a password in the password field (random password is strong and recommended).
- Select the "User" radio button.
- Click the "Create" button below.
Note: You can find more information about FTP accounts here.
# Need more help?
Please contact your hosting company for more assistance, or visit the DirectAdmin support forum at http://forum.directadmin.comopen in new window.