While working on your website, you are bound to come across a situation where you will have to connect to your server via FTP. You might need to upload a new file to your server, edit a file that’s already on your website, or even create a backup of all your WordPress files.
Choosing Your FTP Client
Naturally, the first step will be to download the FTP client that you would like to use. An FTP client is simply a piece of software that allows you to access your website’s files on the server that you are using. There are some popular FTP clients that you should consider, for instance, FileZilla, Cyberduck, and WinSCP are amongst the most popular and widely used. You can choose either one of these or any other FTP clients per your liking. For the purposes of this tutorial, we will be using FileZilla. The concept is the same for any of these clients and with minor differences this tutorial will apply to all FTP clients.
In order to download the FileZilla FTP client once on the page you will need to press the Download FileZilla Client button.
Once you have downloaded the installation file double click on it to start the installation process.
You will be taken through the installation wizard and upon finishing it, you will be able to start FileZilla.
Using the Installed FTP Client
In its essence, the FTP client is a local computer program that is used to access files located on a website’s servers. Since these two are not connected physically you will need to let the client know how and where to access the server and files in question. This information is declared by your hosting provider upon activating the hosting account. You should have received your FTP login credentials within an email upon registering your hosting account. If not, you should be able to find them within your hosting account’s cPanel dashboard.
How to Create New FTP Credentials
If you can’t find your FTP credentials, don’t worry. You can create new credentials from within your cPanel. To access or create the information you will need to log into your cPanel and click on the FTP Accounts link.
This should take you to a form for creating a new FTP account.
Within this form, there are a few things to note. You will need to choose the domain you’d like to access from the drop-down. That in turn will automatically fill the Directory text-box. Once you have added all the necessary information you can press the Create FTP Account button.
How to Connect to Your Server via FTP
Once you have you login credentials, you can connect to your server via FTP. To do this, open FileZilla and navigate to File > Site Manager.
A pop-up window will appear where you can add your website information. Click on the ‘New Site’ button and provide a title for your website.
In the next column, you should enter your website FTP information.
Now you can click on the Connect button to continue. This will save your website’s FTP settings for future use and open a new FTP connection to your website.
Simply check the box next to ‘Always trust certificate for future sessions’ and click on the OK button to continue.
How to Upload Files to Your Server via FTP
You can browse the Local site section to locate the files that you’d like to upload to the server. Now, since WordPress needs to have the correct placement of files, you cannot simply upload a file anywhere and expect it to work. You need to know where to upload the file in your WordPress site. Simply mimic the file path on your local website from the wp-content folder.
Lastly in order to upload the file, once you locate it on both your computer and the server, you need to right-click it and select the upload options from the menu that shows up.
So for example, if you’d like to upload a premium theme to your server, you will first download and unzip the theme folder on your computer. After that, you can upload it to the /wp-content/themes/ folder on your website.
How to Download Files via FTP and Create a Backup of Your Website
FTP can also be used to download files from your website. To download a file from the server simply right-click on the files or folders you want to download under the ‘Remote Site’ column and click on the download button.
This means that you can use your FTP client to backup all WordPress files. To do this, simply select all files and folders in your site’s root directory and download them to your computer. This will effectively create a backup on your local device that you could later upload back to the server through the same FTP client.
Now that you have the knowledge on how to use FTP, you can easily access, edit, and upload files on your server. This also enables you to backup the installation and perform many changes to WordPress and theme files alike.