What Is FTP and What Is It Used For?
FTP (File Transfer Protocol) is a method used to transfer files between your computer and your web hosting server. It allows you to upload, download, and manage files on your website.
FTP is commonly used by website owners, developers, and designers to manage website files outside of the hosting control panel.
What FTP Is Used For
FTP is primarily used to manage the files that make up your website. Common uses include:
-
Uploading website files to your hosting account
-
Downloading backups of your website
-
Editing or replacing files on your server
-
Uploading images, documents, or media
-
Installing or updating website scripts manually
For example, if you build a website on your computer, you can upload the files to your hosting server using FTP so the site becomes accessible online.
How FTP Works
FTP connects your computer to your hosting server using an FTP client (a program designed to transfer files).
To connect, you typically need:
-
FTP Hostname: Usually your domain name or server hostname
-
FTP Username: Your FTP or cPanel username
-
FTP Password: Your FTP account password
-
Port: Usually 21 (or 22 for SFTP)
Once connected, the FTP client shows two file panels:
-
Local Files: Files on your computer
-
Remote Files: Files on your hosting server
You can drag and drop files between the two locations to upload or download them.
Common FTP Programs
Several FTP clients are available to help manage your website files. Some popular options include:
-
FileZilla
-
Cyberduck
-
WinSCP
-
Transmit (for macOS)
These programs provide an easy way to connect to your hosting account and transfer files.
Where Website Files Are Stored
Most website files are located in the public_html directory on your hosting server.
Files placed in this directory become accessible on the internet through your domain name.
Example:
public_html/index.html
This file would typically be the homepage of your website.
FTP vs File Manager in cPanel
cPanel includes a built-in File Manager that allows you to manage files through your web browser.
However, FTP may be preferred when:
-
Uploading large numbers of files
-
Uploading large file sizes
-
Managing files directly from your computer
-
Working on website development projects
FTP vs SFTP
Some hosting providers support SFTP (Secure File Transfer Protocol), which is a more secure version of FTP that encrypts the connection.
SFTP typically uses:
-
Port 23790
-
SSH authentication
Whenever available, SFTP is generally recommended for improved security.
Tips for Using FTP
-
Always keep your FTP credentials secure.
-
Use SFTP when available for better security.
-
Avoid deleting files unless you are sure they are not needed.
-
Keep local backups of important website files.
If you need help accessing your FTP account or configuring an FTP client, please contact our support team and include any error messages or screenshots so we can assist you further.