Web hosting
How can I upload files to my website through Direct Admin?
Website directory strucure, upload with ftp & throygh the Direct Admin file manager
Website Uploading
Directory Structure
In every account's root there are the following directories:
/domains
/mail
/public_html
/backups
/backups
The /backups directory contains ever backup created through the control panel. The /backup directory will be created as soon as you create a backup using the control panel.
/domains
The /domains directory contains the files related with your host account/s. Every domain you host in your account has its own directory (/domains/yourdomain.com). In this directory you will find:
/logs (this is where all log files are saved- this directory is created a month after the account has been created).
/private_html (all the files accessible via SSL -- https://)
/public_html (the website files)
/public_ftp (the FTP site files)
/stats (files created by Webalizer in order to keep statistics – do not modify or delete this directory).
/mail (email files) – the mail directory contains the files created by the server mailing system – do not modify, delete or add anything in this directory.
/public_html - The /public_html directory in the root of your account is in fact a connection to the /domains/yourdomain.com/public_html directory. If you are hosting more than one domain names in your account, this connection will transfer you to the public_html directory of the first domain you created using your account.
Home (index.html) File
The default file for any web directory is index.html. This means that, when visitors enter the https://www.yourdomain.com address, the server is actually sending them to https://www.yourdomain.com/index.html. This happens for any public directory in your system, including the subdomains. When you upload the main website, for every directory, remember to name it index.html. Advanced users may use for example the php or shtml files. If your website is not built on HTML, make sure you have renamed your main filed to index.extension (e.g. index.php, index.shtml).
FTP Uploading
Step 1: Uploading on the server using FTP, requires specific software. We recommend: ΙΒΜ/Windows: FileZilla (freeware), WS_FTP LE (freeware), FTP Explorer (freeware), CuteFTP (free trial). Macintosh: Fetch (freeware), Transmit (free trial).
Step 2: Connect to your server.
The FTP clients require information, such as:
Username – this is the control panel username
Password - this is the control panel password
Address – this is the server address. Use "ftp.yourdomain.com"
Port – Use the default port (21)
Some clients may ask for the host type (select "auto"), ASCII/Binary/Auto (select "auto") and the initial remote folder (you may leave this empty or convert it to /domains/yourdomain.com/public_html to start in the main Web directory).
Step 3: Open public_html directory and upload your files.
If you are hosting more than one domain in your account you must first insert the /domains directory, then the domain name you wish to publish and then the public_html directory.
To upload, mark the files/directories in your computer and drag them to the remote server's appropriate directory.
Uploading with DirectAdmin's File Manager
1. Get in the control panel and press on the "File Manager" icon.
2. Find the directory in which you wish to upload the files.
3. Press the "Upload files to current directory" button on the bottom of the screen.
4. You will see 8 fields. Press the button to select the files you want to upload. Press "Upload Even More Files" if you wish to upload more than 8 files simultaneously.
5. Press "Upload Files".