Skip to content

What Is FTP, and How Do You Upload Your Site's Files with FileZilla, Step by Step?

A complete guide to transferring your site's files: what the FTP protocol is and the crucial difference between it, FTPS and SFTP, and how to create an FTP account in your hosting control panel, connect with FileZilla, upload your files and set permissions, with fixes for the most common connection errors.

Hostingيوسف الحربي35 min read
Illustration of files flying from a laptop folder to a server folder, representing uploading site files over FTP
On this page

There is a moment almost every site owner goes through: you search for a solution to a problem, and the answer says "open the file via FTP and edit this line," or "upload the plugin manually via FTP." And you are left wondering: what is FTP in the first place? Where do I get its credentials? And what is this program with the red icon that everyone mentions?

This is not secondary knowledge. Transferring files is the skill that separates people who truly own their site from those who rent it through a graphical interface. When the WordPress dashboard breaks completely and you cannot log in, FTP remains your only back door to fix what broke. And when you want to move your site between two hosts, upload a theme you bought, or download a full copy of your files before a risky update, all of these paths go through here.

The problem is that most Arabic tutorials confuse three different protocols and treat them as one thing, leaving you with a muddled understanding that makes you type the wrong port and get an error message you do not understand. In this guide we will clear up this confusion first, plainly, then walk through the whole practical side: from creating the account in your hosting control panel, to your first successful connection, to uploading your files and setting their permissions, to diagnosing every error you might run into along the way.

What is FTP, and why do you still need it in 2026?

FTP is a network protocol with one specific job: transferring files between one machine and another over a network. You (the client) connect to the hosting server (the server), prove your identity with a username and password, then browse the server's folders as if they were folders on your computer: upload, download, rename, delete, create folders.

It is older than you might imagine: it was born in the early 1970s, roughly twenty years before the web itself appeared. That age explains its biggest flaw: it was designed at a time when networks were small and trusted, linking universities and research centers, so it never occurred to its designers that anyone might eavesdrop. That is why its original design contains no encryption at all.

Despite this fundamental flaw, FTP (in its two encrypted forms) is still very much around, simply because it does something nothing else does as simply. Think about these real-world situations:

Your site crashed and the white screen appeared. A plugin you just updated conflicted with your theme, and the dashboard itself no longer opens. You cannot disable the plugin from the inside because you cannot log in at all. The fix: connect via FTP, open the plugins folder, and rename the culprit plugin's folder; WordPress then disables it automatically and the site comes back. This trick alone has saved thousands of sites, and you will find the details in the guide to fixing common WordPress errors.

You want to upload a large theme or plugin. Many hosts set a limit on upload size through the browser (8 or 64 MB, for example), and a professional theme file may exceed it. Over FTP this limit does not exist, because you do not go through PHP at all.

You want a full copy of your files. One click on the site folder and downloading it entirely to your computer gives you a manual backup under your complete control, an extra layer alongside the automatic backups we explain in the website backup guide.

You are moving your site between two hosts. You download the files from the old one and upload them to the new one. The files are only half the story (the other half is the database, which you handle through phpMyAdmin and MySQL database management), but this files half inevitably goes through FTP.

The control channel and the data channel: why FTP complicates your life

Here is a technical detail that sounds academic, but understanding it will save you hours of confusion over error messages later: FTP uses two separate connections, not one.

The first connection is called the control channel, and it opens on port 21. Only commands pass through it: "log me in," "list the contents of this folder," "delete this file." It is like a phone call in which you exchange instructions.

The second connection is called the data channel, and it opens temporarily every time actual data is transferred, whether that is the content of a file you are uploading or even just the list of file names in a folder. This channel opens and closes repeatedly during a single session.

This two-channel design is the source of most of FTP's troubles with firewalls and home routers, and it is also why "active mode" and "passive mode" exist, which we will explain shortly. It is also, incidentally, one of the main reasons SFTP is superior: it uses just one connection on a single port, so it passes through firewalls and routers without any trouble.

The FTP connection journey and the three protocols comparedYour PCFileZilla clientConnectionControl channel (commands) + data channel (files)Hosting serverpublic_htmlThree protocols, three levels of securityFTPPort 21 · no encryption: the password is sent as plain textInsecureFTPSPort 21 with AUTH TLS (explicit) or 990 (implicit) · TLS-encryptedSecureSFTPPort 22 · over SSH: a completely different protocol, unrelated to FTPSBestUse SFTP or FTPS, and never send your credentials over plain FTP on a public network
The connection journey: your computer (FileZilla) > the connection channel > the hosting server (public_html), via FTP (21 · no encryption · risky), FTPS (21 · TLS) or SFTP (22 · over SSH).

What is the real difference between FTP, FTPS and SFTP?

This is the most important section of the article, and the source of the biggest widespread mistake in Arabic technical content. The three names are deceptively similar, but they describe radically different things.

FTP is the bare original: the file transfer protocol with no protection layer at all. Everything travels as plain text: the username, the password, the file names and their contents. Anyone on the same network (a café, an airport, an office network) can capture your complete login details with a simple packet analyzer. The default port: 21.

FTPS is exactly the same FTP protocol, with all its commands and both its channels, but wrapped in a TLS/SSL encryption layer, just as HTTP is wrapped to become HTTPS. It comes in two forms:

  • Explicit FTPS: the client first connects to port 21 as a normal connection, then sends the AUTH TLS command to upgrade the connection to an encrypted one before sending any sensitive data. This is the modern form and the most widespread today, also known as FTPES.
  • Implicit FTPS: the client connects to port 990 and encryption starts immediately, before any command. This form is older and is considered deprecated in most modern deployments, but you may come across it on old servers.

SFTP (and here is the crux of the matter) is not FTP at all. Its full name is SSH File Transfer Protocol, and it is a completely independent protocol designed from scratch to run as a "subsystem" inside an ordinary SSH session on port 22. It shares neither FTP's commands, nor its structure, nor its two channels. The only things in common are the letter F in the name and the job of transferring files. If you have SSH access to your server, you have SFTP automatically, without any extra setup, a topic we cover at length in SSH basics for beginners.

PropertyFTPFTPSSFTP
Default port2121 with AUTH TLS (explicit) · 990 (implicit)22
EncryptionNone at allTLS/SSLInside an SSH tunnel
Underlying protocolFTPFTPSSH (completely different)
Number of connectionsTwo channels (control + data)Two channels (control + data)A single connection
Compatibility with firewalls/NATCommon problemsCommon problemsExcellent: a single port
Needs a certificate on the serverNoYes (a TLS certificate)No (SSH keys)
Key-based authenticationNoNoYes (SSH keys)
When to use it?Do not use it on the internetIf SSH is not availableAlways the first choice

The practical rule is simple: if your provider offers SSH, use SFTP and be done with it. If you are on shared hosting that does not offer SSH, ask for FTPS credentials and use the "Require explicit FTP over TLS" option in your program. As for bare FTP, use it only in one rare case: a completely isolated local network with no connection to the internet.

Active mode and passive mode: the most common reason connections fail

Because FTP uses two channels, as we explained, one question remains: who opens the data channel, you or the server? The answer to this question is what is called the "connection mode."

In active mode, your client tells the server, with the PORT command, about an open port on your computer, and then the server initiates a connection back to you. This design made sense on an open network in the 1970s, but it is disastrous today: your home router and the Windows firewall are designed specifically to reject any incoming connection you did not request. The result: you log in successfully, then the program freezes at "Retrieving directory listing" and nothing appears.

In passive mode, the client flips the equation: it sends the PASV command, the server replies with an open port on its side, and then the client opens the data channel. In other words, all connections go outward from your computer, which firewalls and routers allow without objection. That is why FileZilla uses passive mode by default for FTP and FTPS connections, and it is the right choice for more than 95% of users.

AspectActive modePassive mode
Who opens the data channel?The server connects to the clientThe client connects to the server
Command usedPORT / EPRTPASV / EPSV
Behind a home router (NAT)Usually failsWorks with no setup
Client firewallIncoming ports must be openedNeeds nothing
Symptom on failureLogin succeeds, then the file listing freezesRare
The default in FileZillaNoYes

The practical takeaway: if you see a message about the directory listing failing even though login succeeded, the first thing to do is make sure the mode is passive. In FileZilla you will find the setting under Edit ← Settings ← Connection ← FTP, or per site in the "Transfer Settings" tab of the Site Manager. With SFTP this problem does not exist at all, because it has no separate data channel to begin with.

FTP or the File Manager in your control panel?

Modern control panels include a "File Manager" that runs directly in the browser, and it is very convenient for quick tasks. So when should you use each one?

SituationThe panel's File ManagerAn FTP/SFTP program
Quickly editing a single fileBest: an instant built-in editorRequires download and upload
Uploading a folder with thousands of filesSlow and limited by upload sizeBest: a transfer queue that runs on its own
Extracting a ZIP archive on the serverSupported with one buttonNot supported (FTP does not extract)
A full backup to your computerDownload a single archiveDownload the whole folder tree
Working while the control panel is downNot availableBest: your only way in
Giving a developer temporary accessRequires a full panel accountAn FTP account restricted to one folder
Resuming an interrupted transferUsually not supportedSupports resuming

The smart strategy is to combine the two, and we will actually use this combination later in this guide: upload your files as a single compressed archive over FTP (very fast), then extract it from the panel's File Manager (one step). This trick alone turns an upload that takes two hours into one that takes three minutes.

How do you create an FTP account in your hosting control panel?

Before you open any program, you need connection details. These come from your hosting control panel; in cPanel you will find them under Files > FTP Accounts. If the panel is new to you, start with the cPanel guide for beginners to get to know its sections, then come back here.

When you open the page, you will find a form with four main fields:

Username (Log In): type only the first part here, and choose the domain from the list next to it. The full username you will use in FileZilla has the form user@example.com, that is, the name you typed + @ + the domain. Many people type only the short name and then get error 530, so pay attention to this point in particular.

Password: use the panel's built-in password generator, and do not reuse a password from somewhere else. Save it in a password manager immediately, because it will not be shown to you again.

Directory: the most important and most dangerous field. The panel fills it in automatically with a subpath such as public_html/username, which means this account will see only that folder and will not be able to leave it. If you want access to the whole site, clear the content and type public_html. If you want access to everything in the account (including files outside the web root), leave the field empty. Note that the folder does not need to exist beforehand: the panel creates it for you when it creates the account.

Quota: the maximum space this account can use. Leave it "Unlimited" for your own account, and set a limit if you are creating an account for an outside collaborator.

After you click "Create FTP Account," the account appears in the list at the bottom of the page, along with a Configure FTP Client button that shows you the ready-made connection details: the host name, the username and the port. Copy them exactly.

The one-account-per-person rule

A simple security principle that everyone neglects: do not share a single FTP account with more than one person. Create an account for each developer or designer working with you, and restrict it to the folder they need only. When the collaboration ends, delete their account with one click, without having to change your own password. And regularly review the list of FTP accounts and delete any account that is no longer in use: forgotten accounts with old passwords are a common entry point for breaches.

Installing FileZilla: watch where you download it from

FileZilla is the best-known file transfer client, and it is free and open source and runs on Windows, macOS and Linux. But before you download it, there is an important warning.

Download it from its official website only. The problem is that searching for the program's name returns dozens of sites that rehost the installer, and many of them bundle adware or unwanted tools that get installed on your computer without you noticing. Worse still, even the project's own main page sometimes offers a Windows version carrying sponsor-funded "bundled offers," and your antivirus may flag it as a potentially unwanted program.

The solution is simple: on the official download page, look for the link to show all download options, which displays a clean list for every operating system with no bundled extras. In general, if you see the word sponsored in the name of the file you are downloading, you are looking at the bundled version: go back and find the clean one.

During installation on Windows, read every screen before clicking "Next" and decline any offer to install a toolbar, a search engine or an "optimization tool." And if you prefer to avoid the issue altogether, package managers (such as Homebrew on macOS or your distribution's repositories on Linux) always provide clean versions.

Watch out for another confusion beginners often fall into: the project offers two completely different products. FileZilla Client is what you want for uploading your files to someone else's server, while FileZilla Server is a program for running an FTP server on your own computer for others to connect to. Downloading the second by mistake means wasted time in front of an interface that has nothing to do with what you want. Make sure what you download clearly says "Client."

The FileZilla interface: what are these four panes?

When you open the program for the first time, the interface may look crowded, but it is actually organized very logically. Imagine it divided horizontally into three levels: the connection bar at the top, then two side-by-side panes in the middle (your computer versus the server), then the transfer queue at the bottom.

PartWhere it isWhat it shows
Quickconnect barTop of the windowHost, username, password and port fields
Message logBelow the connection barEvery command sent and every server reply: your first source for diagnosis
Local paneLeft of the screen (Local site)Your own computer's files
Remote paneRight of the screen (Remote site)The server's files
Transfer queueBottom of the windowQueued, active and failed files
Site ManagerIcon at the top leftYour saved connections

The message log is your real friend. Every error message the server gives appears there with its original text and code, and that text is what you will need to diagnose any problem or to send to the support team. Do not ignore it or close it.

Connecting for the first time through the Site Manager

You can connect quickly from the top bar, but don't. The right way is the Site Manager, because it saves your complete settings and lets you choose the protocol precisely, which the Quickconnect bar does not allow.

Open File ← Site Manager, then click New Site and give it a meaningful name (for example, "My main site — hosting"). Then fill in the fields:

FieldWhat to enterNotes
ProtocolSFTP or FTPChoose SFTP if SSH is available
Hostexample.com or the server's IPWithout http:// and without a slash
Port22 for SFTP · 21 for FTP/FTPSLeave it empty to use the default
Encryption«Require explicit FTP over TLS»Appears with the FTP protocol only
Logon TypeNormal or Ask for passwordThe second is safer on a shared computer
Useruser@example.comThe full name including the domain in cPanel
PasswordThe FTP account passwordNot necessarily the control panel password

A critical point in the Encryption field: if you choose the FTP protocol, the default option "Use explicit FTP over TLS if available" means the program will try to encrypt and, if that fails, fall back to a bare connection without adequate warning. Change it to "Require explicit FTP over TLS" so it refuses to connect at all if encryption is not available. This difference between "tries" and "requires" is the difference between security and an illusion of it.

Click Connect. On the first SFTP connection, a window appears showing the server's host key fingerprint and asking whether you trust it, the same security mechanism as in SSH. Verify the fingerprint if you can, then enable the option to always trust it and accept.

If everything worked, the right pane will fill with your server's folders. Congratulations: you are connected.

Uploading and downloading files: where exactly do you put your files?

Now the server's folders are in front of you. You will most likely see folders such as etc, logs, mail and tmp, and the most important of them all: public_html.

public_html is the web root. Everything inside it can be reached by visitors through the browser, and nothing outside it is ever shown to them. A file at public_html/about.html opens at example.com/about.html, while a file at /backup/about.html (outside the root) cannot be opened from a browser by anyone, however hard they try.

This piece of information solves the most common puzzle among beginners: "I uploaded the files and nothing shows up on the site." Nine times out of ten, the cause is that the files were uploaded to the account's root folder instead of public_html, or into an extra subfolder by mistake (such as public_html/mysite/index.html instead of public_html/index.html).

This same property is useful for security: if you want to keep a backup or a sensitive configuration file on the server away from visitors' eyes, put it outside public_html.

The three ways to upload

There are three ways to upload, and they all do the same job:

  1. Drag and drop: drag the file from the left pane (your computer) and drop it into the right pane (the server). The fastest and most intuitive.
  2. Double-click: double-click the file in the local pane and it is added straight to the queue and uploaded to the folder currently open on the server.
  3. Context menu: right-click the file, then Upload. Useful when selecting multiple files.

Downloading works the same ways, in the opposite direction. In every case, before uploading, make sure the folder open on the server is the right one: the most common mistake is dropping files into the parent folder by accident.

The transfer queue: watch it, don't ignore it

Every transfer goes into the queue at the bottom of the window, which has three tabs: queued files, successful transfers and failed transfers. The third tab is the one you should always check after any large upload finishes.

Why? Because FileZilla may transfer 998 files successfully and fail on two, and at a quick glance everything looks fine. Then two days later you discover your site is broken because two files are missing. Right-click the failed tab, choose to reset and requeue the files, and repeat until the tab is completely empty.

The golden trick: upload one archive instead of thousands of files

When you upload a complete WordPress site, you are transferring tens of thousands of small files. The problem is that every file requires a full cycle of commands (opening a data channel, transferring, closing, logging), and this overhead takes far longer than transferring the bytes themselves. The result: uploading a 300 MB folder split into 40,000 files can take two hours, while the same size in a single file finishes in minutes.

The solution is practical and simple:

  1. Compress your entire site folder into a single zip file on your computer.
  2. Upload that one archive over FTP: very fast and resilient to interruptions.
  3. Open File Manager in the control panel, select the archive and click Extract.

Use this method for every large transfer, especially when installing WordPress manually or when migrating a WordPress site with no downtime. The time difference is not a marginal improvement; it is the difference between hours and minutes.

Permissions: 644 and 755, and why you should never set 777

Every file and folder on a Linux server carries a set of permissions that determine who can read, write and execute it. In FileZilla you view and change them by right-clicking any file, then File permissions.

The three-digit number reads from the left: the first digit is for the file's owner, the second for the group, the third for everyone (including visitors and the whole world). Each digit is the sum of three numbers: 4 for read, 2 for write, 1 for execute.

NumberMeaningUsed for
644Owner reads and writes · others read onlyRegular files (php, html, css, images)
755Owner has full permissions · others read and enterAll folders and executable script files
600Only the owner reads and writes · no one elseSensitive files such as wp-config.php
640Owner reads and writes · group reads · others nothingSettings only the server process needs
777Everyone reads, writes and executesNothing: a direct security risk

The rule that covers you in 99% of cases: 644 for all files and 755 for all folders. For sensitive configuration files, go down to 600 if the server's configuration allows it.

A final practical point: when uploading a whole folder, you can apply permissions to its contents in one go with the Recurse into subdirectories option in the permissions window, choosing "Apply to files only" or "Apply to directories only." This matters because you want files at 644 and folders at 755, and applying the same number to both is wrong.

Space limits and file counts (inodes)

Before you upload tens of thousands of files, watch out for a limit many people do not see until they hit it: the number of files itself, not their size.

Shared hosting plans set a ceiling on the number of "inodes," the unit the file system uses to count every file, every folder and even every stored email message. Your space may be half empty, and yet you are blocked from creating a new file because you have reached the inode ceiling. The symptoms are confusing: silent upload failures over FTP, strange errors on the site, or automatic backups stopping.

Hosting account resource limitsHosting account: every resource has a capCPURAMInput/output (I/O)Files (inodes)Concurrent processesBandwidthExceeding any limit ⇒ errors (503) or throttling: monitor them and upgrade step by step
Hosting account resource limits: each resource has a maximum (CPU, RAM, I/O, inodes, concurrent processes, bandwidth), and exceeding it causes errors (503) or throttled performance.

Large numbers of small files are the prime suspect: a cache folder that has not been cleaned for months, thousands of thumbnails the media library generates automatically, old backups you forgot inside the account, or a full mailbox. Clean these up regularly, and keep backups off the server, not on it. To understand the other limits that govern your account (CPU, memory and concurrent processes), see the guide to server resources and their limits.

The most common FTP errors and how to fix them

This table is your quick reference for any problem. Read the error text in the message log first, then look it up here.

Error / symptomMost likely causeFix
Connection timed outWrong port, or a firewall blocking the portCheck: 21 for FTP/FTPS and 22 for SFTP · try from another network
530 Login authentication failedWrong username or passwordUse the full name user@example.com · reset the password from the panel
530 even though the credentials are completely correctIP blocked after repeated failed attemptsWait for the block to expire or ask support to lift it
Login succeeds, then the directory listing failsActive mode behind a router/firewallSwitch the connection to passive mode
550 Permission deniedWrong permissions or ownership · a disallowed pathSet 644/755 · check the account is not restricted to another folder
553 Could not create fileNo write permission on the target folderSet the folder's permissions to 755 and check the owner
421 Too many connectionsToo many or hung concurrent sessionsReduce simultaneous connections in the settings · close old sessions
Repeated drops during a large transferThousands of small files · an unstable connectionUpload a single compressed archive and extract it in File Manager
Files uploaded but not showing on the siteUploaded outside public_html or into a subfolderMove them directly into public_html
SFTP connection fails on port 21Confusing SFTP with FTPSSFTP on 22 · FTPS on 21 with AUTH TLS
A warning that the server key has changedThe server was rebuilt, or possible impersonationVerify the fingerprint with your provider before accepting
Uploaded files appear corruptedWrong binary/ASCII transfer modeSet the transfer type to Binary or Auto

Methodical diagnosis when nothing works

If your error does not match any of the above, follow this order instead of random trial and error:

First, make sure the server is accepting connections at all. Try connecting from a completely different network, your phone's mobile data, for example. If it works from your phone but fails from your office network, the problem is your network's firewall, not the server. Many corporate and university networks block port 21 entirely as a security policy.

Second, try the other protocol. If FTPS fails, try SFTP, and vice versa. If one of them works, it tells you immediately where the problem lies.

Third, read the message log line by line. The number at the start of the error message (530, 550, 421) is the diagnosis itself, not just technical noise. Send it as is to the support team if you need to.

Fourth, check the account's status. The FTP account may have been deleted, the quota may be full, or the password may have been changed elsewhere. Open the panel and confirm the account still exists and is active.

Security habits that protect you in the long run

Transferring files is by nature a high-risk activity, because it grants full control over your site. A few simple habits reduce the risk considerably:

Use SFTP as your permanent default. Make it a rule with no exceptions. And if your hosting does not offer SSH and SFTP at all, that in itself is an indicator of the level of service worth thinking about.

Do not save passwords on a shared computer. In the Site Manager, choose Ask for password instead of Normal if someone else uses the computer. FTP clients store credentials locally, and data-stealing malware targets these files specifically.

Delete expired accounts immediately. Every FTP account that is no longer in use is an open door you forget about. Review the list every few months.

Do not use your control panel password for FTP accounts. Keeping credentials separate means a leak of one does not bring down the rest.

Take a copy before every change. Before replacing any file on the server, download the current version to your computer. This small habit saves you from big disasters, and it complements, rather than replaces, a regular backup system.

Watch the login logs. Control panels show active FTP sessions and a log of login attempts. Check them from time to time: a successful login from a country you do not recognize is a warning sign not to ignore.

Frequently asked questions

Is FTP secure? FTP in its original form is not secure at all: it sends the username, the password and the file contents as plain text with no encryption, and they can be captured with simple tools on any shared network. The secure alternatives are FTPS (with TLS) and SFTP (over SSH), and you should always use one of them.

What is the difference between SFTP and FTPS, in short? FTPS is the FTP protocol itself with TLS encryption added; it keeps the control and data channels and their problems with firewalls, and it runs on port 21 (explicit) or 990 (implicit). SFTP is a completely separate protocol that runs inside SSH on port 22 over a single connection. The similarity in name is a misleading coincidence, nothing more.

Which port should I use in FileZilla? 21 for FTP and explicit FTPS, 990 for the old implicit FTPS, and 22 for SFTP. If you leave the field empty, FileZilla uses the default port for the protocol you chose, which is enough in normal cases.

I uploaded the files and nothing shows up on the site. Why? Almost certainly you uploaded them outside public_html, or into an extra subfolder by mistake. Browse the server and make sure the index.php or index.html file sits directly inside public_html, not one level deeper or higher.

Is FileZilla free and safe? Yes, FileZilla Client is free and open source and runs on Windows, macOS and Linux. The risk does not come from the program itself but from where you download it: unofficial sites bundle adware with it, and even the official page sometimes offers a Windows version with bundled offers. Always use the page that shows all download options to get a clean copy.

What does "passive mode" mean, and why does everyone keep asking for it? Because FTP opens a data channel separate from the command channel. In active mode the server initiates the connection to your computer, which routers and firewalls reject. In passive mode your computer initiates all the connections, so they pass through without objection. That is why it is the default in FileZilla and the right choice for most users.

What are the correct permissions for my site's files? 644 for files and 755 for folders as a general rule, and 600 for sensitive configuration files if the server allows it. Never set 777 on anything: it gives every process on the server, including malicious scripts, the right to write and execute.

Why does uploading my site take hours? Because a large number of small files spends far more time on the per-file overhead than on transferring the bytes. Compress the folder into a single archive, upload it, then extract it from File Manager in the control panel: you will cut the time enormously.

I got error 530 even though my credentials are correct. What is the cause? Two common possibilities: you are typing the short username instead of the full user@example.com format required in cPanel, or your IP address has been temporarily blocked by the server's protection systems after repeated failed login attempts. In the second case, wait for the block to expire or ask support to lift it.

Can I extract a ZIP file through FileZilla? No. FTP is a transfer protocol only and does not run commands on the server. Extraction is done from File Manager in the control panel, or from the command line over SSH if it is available to you.

Do I need FTP if I only use WordPress? You need it precisely at the critical moments: when the dashboard breaks and you cannot log in, when uploading a file that exceeds the upload limit, or when editing a configuration file directly. One day you will need it, and it is better to have its credentials ready and saved before you need them, not after.

Summary

FTP is a core skill that deserves half an hour of your time once and serves you for years. The essential point that sets you apart from most of the tutorials in circulation is knowing exactly what you are using: bare FTP on port 21 has no encryption, so avoid it. FTPS is the same protocol with TLS on port 21, which is acceptable. SFTP is a completely different protocol over SSH on port 22, and always the best choice.

The rest are implementation details that are now clear: create an account restricted to the folder you need, download FileZilla from its official source, save the connection in the Site Manager with required encryption, upload inside public_html, set 644 and 755, and check the failed queue after every operation. And when an error appears, read its number in the message log and go back to the error table above: every number has a specific cause and a specific fix.

When choosing your hosting, check three things that make all of this easier: SSH and SFTP access, generous inode limits, and support that understands what you mean when you send them an error message with its code.

Frequently asked questions

Is FTP secure?

FTP in its original form is not secure at all: it sends the username, the password and the file contents as plain text with no encryption, and they can be captured with simple tools on any shared network. The secure alternatives are FTPS (with TLS) and SFTP (over SSH), and you should always use one of them.

What is the difference between SFTP and FTPS, in short?

FTPS is the FTP protocol itself with TLS encryption added; it keeps the control and data channels and their problems with firewalls, and it runs on port 21 (explicit) or 990 (implicit). SFTP is a completely separate protocol that runs inside SSH on port 22 over a single connection. The similarity in name is a misleading coincidence, nothing more.

Which port should I use in FileZilla?

21 for FTP and explicit FTPS, 990 for the old implicit FTPS, and 22 for SFTP. If you leave the field empty, FileZilla uses the default port for the protocol you chose, which is enough in normal cases.

I uploaded the files and nothing shows up on the site. Why?

Almost certainly you uploaded them outside public_html, or into an extra subfolder by mistake. Browse the server and make sure the index.php or index.html file sits directly inside public_html, not one level deeper or higher.

Is FileZilla free and safe?

Yes, FileZilla Client is free and open source and runs on Windows, macOS and Linux. The risk does not come from the program itself but from where you download it: unofficial sites bundle adware with it, and even the official page sometimes offers a Windows version with bundled offers. Always use the page that shows all download options to get a clean copy.

What does "passive mode" mean, and why does everyone keep asking for it?

Because FTP opens a data channel separate from the command channel. In active mode the server initiates the connection to your computer, which routers and firewalls reject. In passive mode your computer initiates all the connections, so they pass through without objection. That is why it is the default in FileZilla and the right choice for most users.

What are the correct permissions for my site's files?

644 for files and 755 for folders as a general rule, and 600 for sensitive configuration files if the server allows it. Never set 777 on anything: it gives every process on the server, including malicious scripts, the right to write and execute.

Why does uploading my site take hours?

Because a large number of small files spends far more time on the per-file overhead than on transferring the bytes. Compress the folder into a single archive, upload it, then extract it from File Manager in the control panel: you will cut the time enormously.

I got error 530 even though my credentials are correct. What is the cause?

Two common possibilities: you are typing the short username instead of the full user@example.com format required in cPanel, or your IP address has been temporarily blocked by the server's protection systems after repeated failed login attempts. In the second case, wait for the block to expire or ask support to lift it.

Can I extract a ZIP file through FileZilla?

No. FTP is a transfer protocol only and does not run commands on the server. Extraction is done from File Manager in the control panel, or from the command line over SSH if it is available to you.

Do I need FTP if I only use WordPress?

You need it precisely at the critical moments: when the dashboard breaks and you cannot log in, when uploading a file that exceeds the upload limit, or when editing a configuration file directly. One day you will need it, and it is better to have its credentials ready and saved before you need them, not after.

Related

Read next