Using FTP to Manage Your Website Files
File Transfer Protocol (FTP) is a reliable method for uploading, downloading, and managing files on your dotCanada.com hosting account. While cPanel's File Manager is convenient for small tasks, FTP provides better performance for handling multiple files and larger uploads. This guide walks you through setting up and using FTP with your hosting account.
FTP vs. SFTP
Before we begin, it's important to understand the difference between FTP and SFTP:
- FTP (File Transfer Protocol): The standard protocol for transferring files, but not encrypted
- SFTP (Secure File Transfer Protocol): A secure version of FTP that encrypts your connection and data
What You'll Need
- FTP Client Software: A program that allows you to connect to your hosting account via FTP/SFTP. Popular options include:
- FTP Account Credentials: Which you'll get from your cPanel
Setting Up an FTP Account
You can use your main cPanel account for FTP access, or create separate FTP accounts with limited access:
Using Your Main cPanel Account for FTP
- Your main FTP credentials are:
- Host/Server: Your domain name or server IP address
- Username: Your cPanel username
- Password: Your cPanel password
- Port: 21 for FTP, 22 for SFTP
Creating a Separate FTP Account (Recommended for Security)
- Log in to your cPanel account at https://{hostname}.mysecureservers.com:2087
- In the search box at the top, type "FTP Accounts" or navigate to the FILES section
- Click on FTP Accounts
- Under "Add FTP Account," fill in the following:
- Login/Username: Create a username (e.g., "website-admin")
- Domain: Select your domain from the dropdown
- Password: Create a strong password or use the password generator
- Directory: Specify the directory this FTP account can access (leave blank for full access, or specify a subdirectory like "/public_html" for more limited access)
- Quota: Set a storage limit or select "Unlimited"
- Click Create FTP Account
- Make note of the FTP account details provided, including the server hostname
Connecting via FTP/SFTP Using FileZilla
The following instructions use FileZilla as an example, but the process is similar for other FTP clients:
Setting Up the Connection
- Open FileZilla
- Go to File > Site Manager
- Click New Site and give it a name (e.g., "My dotCanada Website")
- Configure the following settings:
- Host: Enter your domain name or server hostname (from your FTP account details)
- Protocol: Choose "FTP" or preferably "SFTP - SSH File Transfer Protocol"
- Encryption: If using FTP, select "Require explicit FTP over TLS"
- Logon Type: Choose "Normal"
- User: Enter your FTP username
- Password: Enter your FTP password
- Port: Leave blank (it will use the default port: 21 for FTP or 22 for SFTP)
- Click Connect to save the settings and connect
First-Time Connection
- If you're connecting via SFTP for the first time, you may see a warning about an unknown host key
- This is normal - it's a security feature of SFTP. You can check "Always trust this host" and click "OK"
- Once connected, you'll see your local files on the left and server files on the right
Navigating the FTP Interface
Most FTP clients have a similar layout:
- Left side: Your local computer's files and folders
- Right side: Your website's files and folders on the server
- Top or middle: Transfer queue and status messages
Important directories on your server:
- /public_html/ or /www/ - Your main website files (what visitors see)
- /public_html/subdirectory/ - Subdirectories within your website
- /mail/ - Email-related files
- /logs/ - Server logs
Basic FTP Operations
Uploading Files
- Navigate to the destination directory on your server (right side)
- Navigate to the source directory on your local computer (left side)
- Select the file(s) you want to upload from the left panel
- Drag and drop the selected files to the right panel, or right-click and select "Upload"
- The transfer will begin and you can monitor progress in the queue
Downloading Files
- Navigate to the source directory on your server (right side)
- Navigate to the destination directory on your local computer (left side)
- Select the file(s) you want to download from the right panel
- Drag and drop the selected files to the left panel, or right-click and select "Download"
Managing Files and Folders
Right-clicking on files or directories on the server side gives you options to:
- Create Directory: Make a new folder
- Rename: Change file or folder name
- Delete: Remove files or folders
- File Permissions: Change permission settings (e.g., 644 for files, 755 for directories)
- View/Edit: Some clients allow viewing or editing files directly
Advanced FTP Features
Synchronized browsing keeps your local and remote directories in sync as you navigate:
- In FileZilla, go to View > Synchronized Browsing
- Make sure your local and remote directories have the same structure
- Now when you navigate to a folder on one side, the other side will follow
You can filter which files are shown or transferred:
- In FileZilla, go to View > Filename Filters
- Create rules to include or exclude files by pattern
- Example: Exclude temporary files by adding a filter for *.tmp
For large transfers, you can manage the queue:
- Pause individual transfers by clicking the pause button next to them
- Reorder transfers by dragging them in the queue
- Set transfer speed limits in the settings to prevent using all your bandwidth
Create bookmarks for frequently accessed directories:
- Navigate to the directory you want to bookmark
- Right-click and select "Add to Bookmarks" (or similar option)
- Name your bookmark
- Access bookmarks from the bookmarks menu or sidebar
FTP/SFTP Troubleshooting
Common Connection Issues
- Connection refused: Verify server address and port number
- Login incorrect: Double-check username and password
- Cannot connect to server: Check if your firewall is blocking FTP connections
- Passive mode issues: Try switching between active and passive connection modes in your FTP client settings
- Cannot list directory: Verify you have appropriate permissions for the directory
Transfer Issues
- Transfer fails mid-upload: Large files may time out; try breaking them into smaller parts
- Permission denied: Check file permissions on the server
- Disk quota exceeded: You may have reached your hosting space limit
- File exists: You're trying to upload a file that already exists; choose to overwrite or rename
FTP Best Practices
- Always use SFTP when possible for better security
- Keep backups of important files before making major changes
- Create specific FTP accounts for different users or projects, rather than sharing your main account
- Limit directory access for individual FTP accounts to only what they need
- Regularly change FTP passwords, especially if you've shared them with others
- Set appropriate file permissions after uploading (typically 644 for files, 755 for directories)
- Close your FTP connection when you're done to prevent timeout issues and security risks
If you need assistance with FTP setup or troubleshooting, please contact our support team.