DirectAdmin Site-Helper

Helping you get the most out of DirectAdmin and your web!

# 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.

subdomains menu

subdomains menu

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.

creating subdomain

# 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.

deleting subdomain

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.

deleting subdomain

# 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:

  1. your subdomain must have some traffic (at least one hit)
  2. 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:

  1. Create the subdomain if you haven't done so already.
  2. From the main control panel menu in "Accout Manager" (see Create Subdomains section), click the "FTP Management" link.
  3. Click "Create FTP Account" button. creating ftp account
  4. In the "FTP Username" field, enter the subdomain name (without .yourdomain.com).
  5. Enter a password in the password field (random password is strong and recommended).
  6. Select the "User" radio button.
  7. 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.