{"id":41722,"date":"2024-08-22T00:18:15","date_gmt":"2024-08-21T21:18:15","guid":{"rendered":"https:\/\/coma.lv\/2024\/08\/22\/how-to-use-ftp-to-upload-files-to-wordpress\/"},"modified":"2024-08-22T00:18:15","modified_gmt":"2024-08-21T21:18:15","slug":"how-to-use-ftp-to-upload-files-to-wordpress","status":"publish","type":"post","link":"https:\/\/coma.lv\/en\/2024\/08\/22\/how-to-use-ftp-to-upload-files-to-wordpress\/","title":{"rendered":"How to Use FTP to Upload Files to WordPress"},"content":{"rendered":"\n<p style=\"text-align: left;\">File Transfer Protocol (FTP) lets you move files quickly and easily from one computer to another over the internet. In other words, it is how you send a file from your computer to your web hosting server. In this article we will show you how to use FTP to upload themes, plugins and files to WordPress. We will also show you how to change the permissions of individual files. In this guide we will use <a title=\"FileZilla\" href=\"https:\/\/filezilla-project.org\/download.php?type=client\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">FileZilla<\/a>, a free client available for Windows, Mac OS and Linux. Just download it from the FileZilla website.<\/p>\n<h2 style=\"text-align: left;\">Why Is Knowing FTP So Important?<\/h2>\n<p style=\"text-align: left;\">Sometimes you install and activate a plugin from the admin panel and then find out that it is incompatible with an existing plugin. Incompatibility often leads to the white screen of death, and the site locks up and does not let you do anything. If you know how to use FTP, you can simply log in and delete the plugin over an FTP connection.<\/p>\n<p style=\"text-align: left;\">Often, when you try to paste code from tutorials into the <em>functions.php<\/em> file, you can accidentally lock yourself out of your site. This can happen if you paste the code in the wrong place or if the code contained errors. Knowing FTP lets you fix such problems in a matter of minutes.<\/p>\n<p style=\"text-align: left;\">Sometimes you will run into an access error when activating a plugin. The error will say that the plugin cannot create the folder XYZ because of file permissions.<\/p>\n<p style=\"text-align: left;\">Also, being able to use FTP is a step forward, from beginner to professional. It can save you a lot of time.<\/p>\n<h2 style=\"text-align: left;\">Setting Up FTP and Connecting to Your Site<\/h2>\n<p style=\"text-align: left;\">Find your FTP details in your hosting control panel (for example, in cPanel).<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35417 size-large\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-092456-1030x356.jpg\" alt=\"WordPress\" width=\"1030\" height=\"356\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-092456-1030x356.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-092456-300x104.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-092456-768x266.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-092456-705x244.jpg 705w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-092456.jpg 1177w\" sizes=\"auto, (max-width: 1030px) 100vw, 1030px\" \/><\/p>\n<p style=\"text-align: left;\">Go to the FTP Accounts section and click Configure FTP Client next to your account, which will show your connection details.<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35420 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2016\/08\/Ekranuznemums-2025-05-16-092909.jpg\" alt=\"WordPress\" width=\"998\" height=\"297\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2016\/08\/Ekranuznemums-2025-05-16-092909.jpg 998w, https:\/\/coma.lv\/wp-content\/uploads\/2016\/08\/Ekranuznemums-2025-05-16-092909-300x89.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2016\/08\/Ekranuznemums-2025-05-16-092909-768x229.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2016\/08\/Ekranuznemums-2025-05-16-092909-705x210.jpg 705w\" sizes=\"auto, (max-width: 998px) 100vw, 998px\" \/><\/p>\n<p style=\"text-align: left;\">Click Change password to change the password.<\/p>\n<p style=\"text-align: left;\">Then open FileZilla and choose File &gt; Site Manager.<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35427 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-094534.jpg\" alt=\"FileZilla\" width=\"567\" height=\"317\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-094534.jpg 567w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-094534-300x168.jpg 300w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/p>\n<p style=\"text-align: left;\">Create a new connection by clicking New Site, enter your site&#8217;s host and the connection details, and then connect by clicking the Connect button.<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35432 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-095442.jpg\" alt=\"FileZilla\" width=\"535\" height=\"560\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-095442.jpg 535w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-095442-287x300.jpg 287w\" sizes=\"auto, (max-width: 535px) 100vw, 535px\" \/><\/p>\n<h2 style=\"text-align: left;\">Working with WordPress Files over FTP<\/h2>\n<p style=\"text-align: left;\">Once connected, you will see two panes: local files on the left and remote files on the right. The core WordPress files are located in the root of your site, usually &#8220;public_html&#8221;.<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35450 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-103023.jpg\" alt=\"FileZilla\" width=\"1173\" height=\"511\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-103023.jpg 1173w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-103023-300x131.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-103023-1030x449.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-103023-768x335.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-103023-705x307.jpg 705w\" sizes=\"auto, (max-width: 1173px) 100vw, 1173px\" \/><\/p>\n<p style=\"text-align: left;\">Directory structure:<\/p>\n<ul style=\"text-align: left;\">\n<li>wp-admin &#8211; administration files (usually not edited).<\/li>\n<li>wp-includes &#8211; core WordPress files (should not be changed).<\/li>\n<li>wp-content &#8211; the directory with themes, plugins and uploaded media files.<\/li>\n<\/ul>\n<p style=\"text-align: left;\">To edit files, we recommend using a text editor such as Notepad++ or Atom. To edit a file, right-click the file you need (for example, functions.php) and choose View\/Edit from the menu.<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35459 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-103715.jpg\" alt=\"FileZilla\" width=\"592\" height=\"332\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-103715.jpg 592w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-103715-300x168.jpg 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/p>\n<p style=\"text-align: left;\">The file will open in your default editor for that file type. Edit it in your editor and save it. FileZilla will ask whether to upload the file back to the server; confirm by clicking Yes in the dialog box. When you have finished editing the file, you can delete the local copy by checking Finish editing and delete local file.<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35468 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2016\/08\/Ekranuznemums-2025-05-16-104242.jpg\" alt=\"FileZilla\" width=\"440\" height=\"307\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2016\/08\/Ekranuznemums-2025-05-16-104242.jpg 440w, https:\/\/coma.lv\/wp-content\/uploads\/2016\/08\/Ekranuznemums-2025-05-16-104242-300x209.jpg 300w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/p>\n<p style=\"text-align: left;\"><strong>Installing a Theme via FTP<\/strong><\/p>\n<p style=\"text-align: left;\">Make sure you have the theme ready as an unzipped folder. Open FileZilla and go to the wp-content\/themes directory. Drag the theme folder from the local pane to the remote one. After that, activate the theme from the WordPress dashboard.<\/p>\n<p style=\"text-align: left;\"><strong>Installing Plugins via FTP<\/strong><\/p>\n<p style=\"text-align: left;\">Installing plugins is similar to installing themes: make sure the plugin is unzipped. Go to wp-content\/plugins. Drag the plugin folder from the local pane to the remote one. Activate the plugin in the WordPress admin panel.<\/p>\n<p style=\"text-align: left;\"><strong>Uploading and Downloading Media Files<\/strong><\/p>\n<p style=\"text-align: left;\">To upload media files, go to wp-content\/uploads. To upload, just drag the files from the local pane to the remote one. To download, do the opposite.<\/p>\n<h2 style=\"text-align: left;\"><strong>Changing File Permissions<\/strong><\/h2>\n<p style=\"text-align: left;\">You may need to change the permissions of files and folders in WordPress to keep the site secure, to make media uploads work correctly, to install and update plugins or themes, and to fix access errors when the server or WordPress cannot read, write or execute the necessary files because of incorrect permissions.<\/p>\n<p style=\"text-align: left;\">Right-click the file or folder whose permissions you want to change. Choose File permissions&#8230;<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35487 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-113058.jpg\" alt=\"FileZilla\" width=\"581\" height=\"417\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-113058.jpg 581w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-113058-300x215.jpg 300w\" sizes=\"auto, (max-width: 581px) 100vw, 581px\" \/><\/p>\n<p style=\"text-align: left;\">In the pop-up window you will see a field with a numeric value. You can also use the checkboxes.<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35493 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-113500.jpg\" alt=\"FileZilla\" width=\"581\" height=\"417\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-113500.jpg 581w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/05\/Ekranuznemums-2025-05-16-113500-300x215.jpg 300w\" sizes=\"auto, (max-width: 581px) 100vw, 581px\" \/><\/p>\n<p style=\"text-align: left;\">Use the right values depending on what you are editing. The recommended numeric permission values are:<\/p>\n<ul style=\"text-align: left;\">\n<li>Files &#8211; Read and Write for the owner &#8211; 644<\/li>\n<li>Folders &#8211; Read, Write, Execute for the owner &#8211; 755<\/li>\n<li>wp-config.php &#8211; a more restrictive 600 or 640<\/li>\n<\/ul>\n<p style=\"text-align: left;\">For folders you can apply the changes to subdirectories. For folders you will see the &#8220;Recurse into subdirectories&#8221; option: choose Apply to all files and directories to apply to everything, or choose Apply to files only \/ Apply to directories only depending on your needs. Click OK to apply.<\/p>\n<p style=\"text-align: left;\">\u26a0\ufe0f Important: do not set folders or files to 777 unless it is absolutely necessary \u2014 it is a security risk.<\/p>\n<p style=\"text-align: left;\">If your site broke after you changed permissions, reset them to the standard values:<\/p>\n<ul style=\"text-align: left;\">\n<li>Files: 644<\/li>\n<li>Folders: 755<\/li>\n<\/ul>\n<h2 style=\"text-align: left;\">Conclusion<\/h2>\n<p style=\"text-align: left;\">Using FTP is a powerful way to manage your WordPress site. Now you know how to install themes and plugins and how to edit files using FTP.<\/p>\n<p style=\"text-align: left;\">Finally, to reinforce what you have learned, watch the video:<\/p>\n<div class=\"fluid-width-video-wrapper\" style=\"text-align: left;\"><a href=\"https:\/\/www.youtube.com\/watch?v=euEjc2QSGok\" target=\"_blank\" rel=\"noopener\">https:\/\/www.youtube.com\/watch?v=euEjc2QSGok<\/a><\/div>\n<p style=\"text-align: left;\">If you are looking for other FTP clients, here is a list of some quite good ones:<\/p>\n<p style=\"text-align: left;\"><a title=\"Cyberduck\" href=\"https:\/\/cyberduck.io\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Cyberduck<\/a> (all platforms)<br \/>\n<a class=\"thirstylink\" title=\"WS_FTP\" href=\"https:\/\/www.progress.com\/ftp-client\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">WS_FTP Professional<\/a> (Windows only)<br \/>\n<a title=\"WinSCP\" href=\"https:\/\/winscp.net\/eng\/index.php\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">WinSCP<\/a> (Windows only)<\/p>\n<hr \/>\n<p style=\"text-align: left;\"><em>Our specialization is WordPress website development and maintenance. Contact us for a free consultation \u2014 <a href=\"mailto:vadim@coma.lv\">vadim@coma.lv<\/a>, <a href=\"tel:+37129394520\">+371 29394520<\/a><\/em><\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>File Transfer Protocol (FTP) lets you move files quickly and easily from one computer to another over the internet. In other words, it is how you send a file from your computer to your web hosting server. In this article we will show you how to use FTP to upload themes, plugins and files to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":38395,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1225,1406],"tags":[],"class_list":["post-41722","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","category-for-beginners"],"_links":{"self":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts\/41722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/comments?post=41722"}],"version-history":[{"count":0,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts\/41722\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/media\/38395"}],"wp:attachment":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/media?parent=41722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/categories?post=41722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/tags?post=41722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}