Diagram of file transfer between a computer and a web server over FTP

If you manage a website, sooner or later you will need to upload files directly to the server: a theme file, a plugin, an image, or a configuration file you edited by hand. The most standard way to do this is FTP. In this guide you will learn what FTP is, how to use it step by step with the most popular free client, FileZilla, how to set up a secure connection (FTPS), how file permissions work, and how to fix the most common errors.

What Is FTP and What Is It For?

FTP (File Transfer Protocol) is a protocol used to send and receive files between your computer and your web server. Instead of visiting the site through a browser, FTP connects you to the server's file system; you upload, download, delete or rename files just like folders on your own computer.

Your site's files are usually kept in the public_html folder on the server (on some servers it is www or htdocs). FTP is exactly how you access that folder.

Information You Need for an FTP Connection

You need four pieces of information to connect via FTP. You can find them in your hosting provider's welcome email or under cPanel > FTP Accounts:

  • Host (Server address): For example ftp.yoursite.com or your server's IP address.
  • Username: The name of the FTP account you created.
  • Password: The password of the FTP account.
  • Port: 21 for plain FTP, usually 22 for secure SFTP.
Host, username, password and port fields in the FileZilla site manager
FTP connection details: host, username, password and port. Choose an encrypted (FTPS) connection whenever possible.

Downloading and Installing FileZilla

FileZilla is a free, open-source FTP client that runs on Windows, macOS and Linux. Download the FileZilla Client version (not the Server) from the official site at filezilla-project.org. During installation, read any suggested extra software carefully and leave anything unnecessary unchecked.

Get to Know the FileZilla Interface

When you first open FileZilla, the interface may look crowded, but it really consists of a few core sections. The numbers below correspond to the areas in the image:

FileZilla interface: quick connect bar, local and remote panes, transfer queue
The main sections of the FileZilla interface.
  1. Quickconnect bar: Enter the host, username, password and port to connect instantly.
  2. Local site (left pane): The files on your own computer.
  3. Remote site (right pane): The files on the server; where your site lives.
  4. Transfer queue (bottom): The status of files being uploaded/downloaded and error logs.

Step by Step: Connecting via FTP and Uploading Files

The flow below is the shortest way to connect from scratch and upload your first file:

Steps to connect via FTP and upload files
The five steps to connect via FTP and upload a file.

1) Connect

Enter the host, username, password and port (21) into the Quickconnect bar and click Quickconnect. If the connection succeeds, the right pane shows the folders on the server.

2) Open the correct folder

In the right pane, double-click the public_html folder to open it. Your site files must be uploaded here. Uploading to the wrong folder (for example the root directory) is one of the most common reasons a site does not load.

3) Drag and drop the files

Select the file you want to upload from the left pane and drag it into public_html on the right. You can select and move multiple files or folders together. To download, drag in the opposite direction, from right to left.

4) Verify the transfer

In the transfer queue at the bottom, make sure each file shows Uploaded / Successful. If there are files in the Failed transfers tab, you can right-click them and requeue them.

Security: Use FTPS/SFTP Instead of Plain FTP

Plain FTP sends your username and password without encryption, which is a risk on insecure networks. Whenever possible, use SFTP (port 22) or FTPS (explicit, TLS over port 21). In FileZilla, you can choose these secure options from the Protocol/Encryption field in the Site Manager.

What You Need to Know About File Permissions (CHMOD)

Every file and folder on the server has a permission value. The general rule: folders should be 755 and files should be 644. You can change this value by right-clicking a file and choosing File permissions. Incorrect permissions can cause errors like “500 Internal Server Error” or “Forbidden”, so avoid granting broad permissions like 777 unless absolutely necessary.

Common FTP Errors and Their Solutions

  • “Connection timed out”: The host or port may be wrong; a firewall/antivirus may be blocking FileZilla. Check the port (21/22) and the host address.
  • “530 Login authentication failed”: The username or password is incorrect. Reset the FTP account password from cPanel.
  • “Could not connect to server”: This may be a passive mode issue. Try Passive mode under Settings > FTP > Transfer Mode.
  • Files upload but do not appear on the site: You most likely uploaded to the wrong folder (outside public_html).

For more advanced server and file management tasks, you can check out our cPanel usage guide. Since you will use FTP often when installing WordPress, our WordPress installation guide will also come in handy.

Frequently Asked Questions (FAQ)

What is the difference between FTP and SFTP?

FTP transfers files without encryption; SFTP, on the other hand, performs encrypted transfers over SSH (port 22). For security, prefer SFTP or FTPS whenever possible.

Is FileZilla free?

Yes, FileZilla Client is completely free and open source. Just make sure you download it only from the official site (filezilla-project.org).

I uploaded my files but my site does not open, why?

The most common cause is uploading to the wrong folder; the files must be inside public_html. Also check the file permissions (folders 755, files 644) and that an index file exists.

Where do I find my FTP credentials?

You can find them in your hosting provider's welcome email or under cPanel > FTP Accounts, where you can also create a new FTP account.

Conclusion

FTP is the most fundamental and powerful way to manage your website's files. With FileZilla, entering your connection details and dragging files into the public_html folder takes only minutes. For security, remember to use FTPS/SFTP, set file permissions correctly, and always upload files to the right folder.

Related Guides

Do you need help with your website, hosting or SEO? Get in touch with me.