FTP (File Transfer Protocol) is the standard method for uploading files to a hosting server. It's ideal for transferring large numbers of files or entire directories where DirectAdmin's File Manager may be slow or inconvenient. FileZilla is the most popular free FTP client, supporting Windows, macOS, and Linux.
Download and Install FileZilla
Download the FileZilla Client (not Server) from filezilla-project.org. Choose the version for your OS and install normally — it's completely free.
Find Your FTP Credentials in DirectAdmin
Before connecting, you need four pieces of information. Find them in your Hosting welcome email or DirectAdmin:
- Host / FTP Server — e.g.,
ftp.yourdomain.comor the server's IP address - Username — your hosting username (usually the same as DirectAdmin login)
- Password — your hosting password
- Port — typically
21(FTP) or22(SFTP)
Create a Separate FTP Account in DirectAdmin
To give developers access to specific folders only, create a separate FTP account: DirectAdmin → FTP Management → Create FTP Account. Set the path to restrict access to the designated folder.
Connect FileZilla for the First Time
Method 1 — Quickconnect (Fast)
Enter the details in the top bar of FileZilla and click Quickconnect:
Host: ftp.yourdomain.com
Username: yourusername
Password: yourpassword
Port: 21
Method 2 — Site Manager (Recommended — saves credentials)
- Open File → Site Manager (or Ctrl+S)
- Click New Site and name it, e.g., "AsiaGB Hosting"
- Select Protocol: FTP or SFTP (if supported)
- Enter Host, Port, Username, and Password
- Logon Type: Normal (no password prompt each time)
- Click Connect
SFTP is more secure than FTP: SFTP (SSH File Transfer Protocol) encrypts all data in transit and uses port 22. If your hosting supports it, always prefer SFTP over plain FTP.
Understanding the Folder Structure
After connecting, the right panel (Remote Site) shows your hosting's directory structure:
public_html/— Main web root. Files accessible via browser must be herepublic_html/wp-content/— WordPress themes and pluginslogs/— Error logs (do not modify)private/— Non-web-accessible folder; safe for config files and backups
Uploading Files
Drag and Drop
In the left panel (Local Site), navigate to your local files. Drag files or folders from the left panel and drop them into the target folder on the right. FileZilla begins uploading immediately.
Upload an Entire Folder
- Navigate to the folder in the left panel
- Right-click the folder → Upload
- FileZilla will transfer all files including subfolders
Monitor Queue and Transfer Status
Check the bottom panel: Queued files shows pending transfers, Successful transfers shows completed files, and Failed transfers lists errors (right-click → Retry to re-attempt).
Common Issues
Connection Timeout / ECONNREFUSED
- Verify the hostname is correct (use the server IP if DNS hasn't propagated yet)
- Check that your local firewall isn't blocking port 21
- Try switching Transfer Mode to Passive: Edit → Settings → Connection → FTP → Passive mode
Permission Denied When Uploading
- Confirm the FTP user has write permission for the destination folder
- If using a separate FTP account, check the home path set in DirectAdmin
.htaccess File Not Visible in FileZilla
Files starting with . are hidden by default. Fix this in FileZilla: Server → Force showing hidden files.
Alternatives to FTP: DirectAdmin includes a File Manager for quick single-file edits, and supports Git Deploy via SSH for developers — see our article on Git Deploy on Hosting.
SFTP vs FTP: Understanding the Security Difference
Many users treat FTP and SFTP as interchangeable — but there are important differences every web developer should understand:
| Feature | FTP (port 21) | SFTP (port 22) |
|---|---|---|
| Encryption | None | Full SSH encryption |
| Password Security | Sent as plain text (risky) | Encrypted throughout |
| Firewall Friendly | Active mode can cause issues | Single port, no issues |
| Speed | Slightly faster | Slightly slower (encryption overhead) |
| Recommended For | Legacy systems only | All cases, especially production |
All AsiaGB Hosting plans support SFTP on port 22. Switch from plain FTP by simply changing the Protocol setting in FileZilla's Site Manager — no additional configuration needed.
Advanced: Uploading via Command Line
For developers or teams who want to automate deployments rather than using a GUI, command-line tools offer a powerful alternative:
Upload a Single File with curl
# Upload a file via FTP
curl -T index.html "ftp://ftp.yourdomain.com/public_html/" \
--user "yourusername:yourpassword"
# For SFTP, use rsync or scp instead
Sync an Entire Folder with rsync over SSH
# Sync entire local folder to hosting
rsync -avz --progress ./public/ \
[email protected]:/home/yourusername/public_html/
# Sync only changed files (saves bandwidth)
rsync -avz --checksum ./public/ \
[email protected]:/home/yourusername/public_html/
Automate your deploys: Add the rsync command to a shell script and trigger it from a Cron Job or CI/CD pipeline to auto-deploy every time you push code to your Git repository.
Setting File Permissions After Upload
Correct file permissions are critical for both website functionality and security. Here are the standard permission values:
- Regular files (.html, .php, .css, .js): Permission
644— owner can read/write, group and others can read only - Directories: Permission
755— owner can read/write/execute, group and others can read/execute - Config files with credentials (config.php): Permission
600— owner only - Writable folders (cache, uploads): Permission
755or777for the folder itself
Change Permissions in FileZilla
Right-click any file or folder in the Remote Site panel → File permissions → enter the numeric value and click OK. Check Recurse into subdirectories to apply permissions across an entire directory tree.
# Change permissions via SSH command line
find /home/yourusername/public_html -type f -exec chmod 644 {} \;
find /home/yourusername/public_html -type d -exec chmod 755 {} \;
Need Hosting with FTP/SFTP Support?
All AsiaGB Hosting plans include FTP, SFTP, and File Manager with free SSL. Starting at ฿500/year.
View Hosting Plans