Have you ever needed to upload multiple large files to your WordPress website or modify file permissions? By default, WordPressβ back-end doesnβt allow you to bulk upload media files or modify file permissions. However,Β File Transfer Protocol (FTP) enables WordPress site owners to access the web server directly to take care of these tasks and more.
In this post, weβll cover the basics of FTP and discuss why you might need to use it for your WordPress site. Weβll also recommend three of the best FTP clients for WordPress users. Finally, weβll wrap up with a quick tutorial on how to get started with WordPress FTP.
Letβs get right to it!
An Overview of FTP
FTP is a network communication protocol that gives you direct access to a remote web server. You can use FTP to transfer files between your computer and the server, modify file and directory permissions on the server, download files from the server to your computer, and more. In a nutshell, FTP enables webmasters to manage files on a web server without having physical access to the server.
FTP was developed in the 1970βs by an MIT student with the purpose of allowing files to be securely transferred between host servers and client computers. Since then, itβs undergone several revisions as the internet has evolved. FTPS and SFTP are secure alternatives to the original FTP specification which take modern-day internet security concerns into account.
Why You Need FTP for WordPress
Over the course of 12 years, WordPress has grown tremendously into a complete content management solution. In fact, it is entirely possible to build and maintain a WordPress website without ever having to fire up an FTP client.
You can create content, upload files, and even add custom CSS and PHP code to your website files right from the WordPress dashboard. At this point, isnβt it safe to say that WordPress users donβt need FTP at all?
Well, no. As powerful as it is, the WordPress backend canβt handle everything.
The best example of something WordPress canβt deal with on its own is the notoriousΒ White Screen of Death error which leaves you with no choice but to use an FTP client. Troubleshooting this issue and other like it is one of the major reasons why you canβt afford to dismiss FTP altogether. When your site takes a turn for the worst (which almost all do sooner or later) an FTP client will prove to be invaluable.
Hereβs a quick rundown of four common scenarios that would call for the use of an FTP client:
- Migrating your WordPress website to a new web server (unless you are using a WordPress migration plugin, which will do the work for you).
- Deleting or deactivating plugin and theme files which are causing compatibility issues.
- Modifying the wp-config.php fileΒ after migrating WordPress, changing your database prefix, or to turn debugging mode on or off.
- Adjusting file and directory permissions.
Now that you know why you need FTP, letβs get you up to speed.
3 Great Free FTP Clients
Weβve handpicked three of the best FTP clients for you:
- FileZilla:Β FileZilla is a free, open source FTP client for Windows, Mac, and Linux. It features a drag-and-drop interface making it incredibly easy to use. If youβre starting out with FTP for the first time, we recommend going with FileZilla.
- Free FTP: Free FTP is available for Windows computers only. It comes with drag-and-drop functionality, one-click backups, and file tracking.
- Cyberduck. Cyberduck is a popular FTP client for Windows and Mac systems with a blazing fast FTP core. It enables users to integrate with cloud storage space and features bookmarking functionality to make file uploading more organized.
Pick an FTP client and install it.Β For this tutorial, weβll be using FileZilla and, for the sake of simplicity, recommend that you do the same.Β Next, weβll show you how to set up and start using WordPress FTP.
Getting Started With WordPress FTP
Before you fire up an FTP client and start tinkering with your website files itβs critically importantΒ to backup your WordPress website. Nothing weβre going to show you today should cause even a second of downtime, but itβs always better to play it safe.
To configure an FTP client to access your hosting account you will need two pieces of information:
- An address to access your web server. Typically you will either use a dedicated IP address or your website domain.
- FTP login credentials.
Letβs start by figuring out your credentials.
Locating Your FTP Credentials
Most hosts will create FTP credentials for you when you sign up for hosting.
If your host uses cPanel β and the vastΒ majority of popular hosts do βΒ then you already have FTP credentials. You can simply use your hosting account username and password as FTP credentials. However, if your host does not offer cPanel, then you may need to create an FTP account.
You can create an FTP account by logging into your hosting control panel and navigating to the FTP section. Find the option to create or add a new account and select a username and password. When you create the account, make sure you provide access to the directory that contains your website. In most hosting configurations, you will need access to the directory calledΒ public_html.
Next, you can set a value for Quota which limits the amount of data you can transfer or go with Unlimited to transfer files without any interruptions. ClickΒ Create FTP AccountΒ once youβre done.
With your FTP credentials in hand, itβs time to locate your FTP host address.
Locating Your FTP Host Address
If your host uses cPanel, once again, things are thankfully easy. Just use the primary domain name associated with your account as your FTP host address. For example, if you signed up forΒ http://www.yourawesomedomain.com when you created your hosting account, just useΒ yourawesomedomain.com as your FTP host address.
Another option is to use aΒ dedicated IP address. Not all hosting accounts include a dedicated IP address, but if you do have one you can locate it by logging into your hosting account and navigating to the IPs section.
If all else fails, you may need to reach out to your hostβs customer support department or do some research in their knowledge base to determine the appropriate FTP host address.
Configuring Your WordPress FTP Client
Now that you know your FTP host address and credentials, itβs time to fire up FileZilla. Launch the FileZilla client, enter your FTP account details, and click the Quickconnect button to establish a connection. As youβll see in the image below, weβre using a dedicated IP address, but enter your FTP host domain in the HostΒ field if you donβt have a dedicated IP.
If your FTP connection is successful, youβll see the Status updated toΒ Directory listing of β/β successful.
Thatβs all there is to it. Youβve established a connection between your hosting account and FTP client.
Transferring Files Through FTP
FileZillaβs interface is divided into two sections: local site on the left and remote site on the right. Once you click on a folder on either side, the box below it will populate with the folderβs contents.
FileZilla lets you transfer all kinds of files from any folder on your local computer to any directory on your web server.
In order to start transferring files to your remote site from your computer, all you have to do is drag and drop them from the local site box to the remote site box.
At the very bottom of your FileZilla FTP clientβs screen, youβll notice three tabbed sections:
- Queued files: Queued files are those that youβve selected to transfer and are in the process of transferring from your local computer to the remote web server.
- Failed transfers: These files are those that were selected to be transferred but were not successfully transferred to the remote server.
- Successful transfers: This tab displays a list of the files that were successfully transferred from your local computer to the server.
If your files were successfully transferred then youβre good to go β the selected files are now uploaded to your WordPress websiteβs server.
Uploading Media Files in Bulk
WordPress doesnβt recognize media files in the Media Library that were uploaded from anywhere other than the Media Library itself or via the Add Media button. This means that when you upload media files through the FTP client to your siteβs Uploads folder then they wonβt appear in the Media Library.
One way to work around this problem is to install the Add from Server plugin and register them from there.
Managing File Permissions in FileZilla
Another task that is commonly managed via FTP is changing file and directory permissions. To change file or directory permissions navigate to the directory or file you wish to manage, right-click to open the contextual menu, and select File permissions⦠from the bottom of the menu.
Adjust permissions using the checkboxes or by entering a numeric value in the appropriate field. ClickΒ OK and the new permissions will take effect.
Editing a Website File via FTP with FileZilla
One of the most common WordPress FTP tasks is to open and editΒ wp-config.php. To do this, first, locate the file. In a standard WordPress installation, youβll find it in your websiteβs root directory.
Use theΒ local site section of FileZilla to locate your computerβs desktop, and then drag theΒ wp-config.php file from the web server to your desktop. This will copy the file to your desktop.
Before editing your file, create a second copy of it on your desktop with a slightly different name. Simply renaming the copied versionΒ x-wp-config.php will do. Now, open the properly-named version (wp-config.php) and edit it to your heartβs content.
The last step in the process is to go back to FileZilla and drag the updated version of the file from your computer desktop back to the web server. When you do, FileZilla will ask you to verify that you want to overwrite the file on the server and provide several options. Select theΒ Overwrite option and clickΒ OK.
Now, access your website to make sure that the intended change has taken effect. If something unexpected occurs, use the backup copy of wp-config.php on your desktop to restore your siteβs originalΒ wp-config.php file.
Conclusion
Getting started with WordPress FTP is simple. And once youβre up-and-running youβll be able to take advantage of WordPress FTP capabilities that exceed the default capabilities of the WordPress backend, such as:
- Transfer files to and from your web server with ease.
- Upload media files in bulk and then use Add From Server to import them into WordPress.
- Manage file and directory permissions.
- Edit WordPress files such as wp-config.phpΒ whileΒ troubleshooting WordPress issues.
Do you have any questions about managing your WordPress site via FTP? Get in touch in the comments section below!
Article thumbnail image by gdainti / shutterstock.com
Thx for this one, very comprehensive.
No problem, Ivica. π
Great explaination for the importance of ftp for wordpress users like me .I think FileZilla is the best one cause it’s free and simple to use.
We hear you, Osama β thanks for your comment. π
I still find FTP relatively awkward to work with if you want to edit files directly using Sublime Text or Brackets.
I now use WebDAV for file access and find it a smoother way to work directly with files. Most hosting with cPanel can offer ‘Web disk’ (cPanels’s name for WebDAV access) although the hosting company may need to make some setting changes for it to work.
I no longer use FTP, but Cliff, Cyber Duck is available for Windows and works well (I prefer it to FileZilla).
Thanks for your insight. π
I never use ftp.
But this guide can help me start using its
Thanks For sharing.
Cheers
No problem, Arpan β glad we could be of service. π
For the most common WordPress FTP tasks to edit wp-config.php or other text files I use editplus by configuring the remote access, it allows to setup ftps or sftp.
Thanks for the suggestion, Alejandro!
When I was working at a client’s mac, they use cyber duck for ftp. One great feature I stumbled upon was the ability to load the php file directly off cyber duck then edit the file in Text Wrangler. Once I save the file (not on my local comp) it uploads the updated the file back to the server.
Can someone recommend me a similar program setup for windows?
Cliff. That’s one of the reason I like Cyberduck. And I use it on WIndows.
Hello Cliff β Roland is correct! We used FileZilla and TextWrangler on many machines to do exactly what you’re suggesting. π
FileZilla does that too. I have Microsoft Visual Studio Code (freeware) set as my code editor and I can right-click any file (.php, .xml) inside FileZilla, choose View/Edit and it will open in VSC. After editing, I save the file and once I go back to FileZilla, it’ll ask if I want to upload the saved file.
You are right.
You can use any program to be your default editor with Filezilla (notepad++, notepad, UltraEdit or Microsoft Visual Studio Code etc). After you perform changes you will be ask by FileZilla if you will like to upload the file to server.
We all have more than one editor to accomplish our daily tasks, Lightweight editors like editplus, notepad++ have a small footprint and comes in handy, you can open the files directly without using FileZilla or other ftp solution to invoke the editor.
Use what makes your job easier and fast.
Try editplus.
you can setup sftp or ftps.
It will upload the download and update the file back to the server.
Thanks! I did some reading on this and learned that there are two different ways to do secure FTP: FTPS (FTP over SSL) and SFTP (SSH File Transfer Protocol).
I was going to stick with FTPS since it’s easier to implement. Unlike SFTP, I don’t have to generate a SSH key pair, etc.
You don’t have to generate a key pair to use SFTP, unless your host forces you to do so.
It is FreeFTP or FireFTP? π
Comments elsewhere online indicate that both FileZilla and CyberDuck are usually bundled with malware during download and installation, so, not being at all savvy about how to deal with that I wonder if anyone could verify a good experience with these downloads. I have Mac El Capitan.
Yes, Robert is correct. You should always download your software directly from source. We will only include direct links to tools and services, too.
If you use the link in the article above, you will be getting if from the proper source.
How do we use SFTP through FileZilla? Thanks for the great insight on FTP.
When setting up a connection, just choose SFTP instead of FTP. If you’re using Quickconnect, enter 22 in the Port field.
I don’t think FileZilla supports sftp! I use cyber duck on osx.
Put sftp:// in front of domain name, ie. sftp://mysite.com
The core concepts are useful to know, but I agree with Simon Harper, nobody should be using FTP. The reason is that FTP transfers user name and password (and everything else) unencrypted. With cPanel, this means you’re exposing your hosting account credentials to snooping or man-in-the-middle attacks. SFTP is the proper tool for the job. If your host doesn’t support SFTP, find a new host.
Also, maybe just a typo, but your link to Free FTP “for Windows” goes to FireFTP, which is a cross-platform add-on for Firefox.
I recommend Transmit ftp app for mac users
https://panic.com/transmit/
The speediest ftp clinet i know.
Transmit is great. I use it too.
Do you recommend using FTPS instead of FTP?
SFTP at a minimum should be used. FTP is insecure.
I’ve just started using DIVI WP (or should that be WP-DIVI) anyway I have been a self trained webmaster for 27 years. For MY personal websites.
I’ve always used FTP to edit pages– I started out using Coffeecup and other small programs to build my websites. It’s funny my son who graduated from college laughs at my simple websites. He’s now a Computer Wireless guy for 10 years. I’ve tried to tell him that some people don’t want all their information on the website, just enough to get them into the store.
ANYWAY — WP is a good program for some. Doing maintenance can take some time. I never charge my clients for editing a page. It took me 5 minutes to make the edit, so Coffeecup HTML is good that way.
We need SIMPLE pages for Older people who don’t want to Look at pretty pictures on a website….. Can you make them in WP?
Tony, there are plenty of websites dedicated to a currently popular trend β minimalism. You’re describing exactly what it encapsulates: function over style, with content as the focus.
The good news is, you can definitely do this using WordPress and Elegant Themes’ products!
Take a look at this recent article: https://www.elegantthemes.com/blog/resources/best-minimalist-wordpress-themes
β¦and while you’re at it, check out Minimal (https://www.elegantthemes.com/gallery/minimal/)
Hope this helps. π
I always find Filezilla easier in linux as compare to Windows.
I hear you, Vikas. π