Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Puchar WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Jak używać FTP do przesyłania plików do WordPress dla początkujących

Uwaga redakcyjna: Otrzymujemy prowizję z linków partnerskich na WPBeginner. Prowizje nie mają wpływu na opinie i oceny naszych redaktorów. Dowiedz się więcej o Proces redakcyjny.

Czy chcesz dowiedzieć się, jak używać FTP do przesyłania plików na twoją witrynę internetową WordPress?

FTP, czyli File Transfer Protocol, to szybki i prosty sposób na przesyłanie plików z twojego komputera do witryny internetowej.

W tym artykule pokażemy, jak używać FTP do przesyłania plików do WordPress.

How to Use FTP to Upload Files to WordPress for Beginners

Oto krótki przegląd tematów, które omówimy w tym wpisie:

Co to jest FTP?

FTP to skrót od File Transfer Protocol. Jest to standardowy sposób przesyłania plików z twojego komputera na konto hostingowe witryny internetowej. Można o nim myśleć jak o zarządzaniu plikami w Internecie.

Jeśli stworzyłeś witrynę internetową WordPress, być może słyszałeś o FTP i zastanawiałeś się, czy powinieneś go używać.

Używasz pakietu oprogramowania klienckiego FTP, aby połączyć się z serwerem FTP twojej witryny internetowej.

Po nawiązaniu połączenia możesz uzyskać dostęp do plików na twojej witrynie internetowej i przesyłać pliki ze swojego komputera.

Możesz się zastanawiać, dlaczego potrzebujesz FTP, skoro możesz przesyłać pliki na twoją witrynę bez niego.

Możesz przesyłać pliki multimedialne z twojego obszaru administracyjnego WordPress. Za pomocą WordPressa można również przesyłać wtyczki i motywy.

FTP jest przydatny, ponieważ można go używać nawet wtedy, gdy występuje problem z twoją witryną WordPress. Na przykład, można go użyć do ręcznego przesłania pliku wtyczki lub motywu podczas rozwiązywania problemów z WordPressem.

Wybór oprogramowania FTP

Najpierw musisz pobrać i zainstalować klienta FTP na twoim komputerze. Klient FTP to aplikacja, która pomaga połączyć się z twoją witryną internetową i przesyłać pliki za pomocą protokołu FTP.

Istnieje wiele klientów FTP do wyboru. Jeśli potrzebujesz pomocy w wyborze tego, który będzie działał na twoim komputerze, możesz zapoznać się z naszą listą najlepszych klientów FTP dla komputerów Mac i Windows.

Niektóre popularne bezpłatne programy to WinSCP dla systemu Windows, Cyberduck dla komputerów Mac i wieloplatformowa FileZilla.

W tym poradniku będziemy korzystać z FileZilla, ale podstawowe koncepcje są takie same niezależnie od wybranego oprogramowania.

Łączenie się z twoją witryną WordPress za pomocą FTP

Aby zabezpieczyć twoje pliki, FTP wymaga nazwy użytkownika i hasła. Tak więc, gdy otworzysz oprogramowanie FTP, będziesz musiał wpisz dane uwierzytelniające FTP.

Twoje dane uwierzytelniające FTP zostały wysłane e-mailem podczas rejestracji konta hostingowego WordPress.

Informacje o twoim koncie FTP można również znaleźć w kokpicie cPanel konta hostingowego.

Manage FTP accounts under your hosting control panel

Jeśli nie możesz znaleźć danych uwierzytelniających do logowania, możesz skontaktować się z dostawcą hostingu, aby uzyskać te informacje.

Po uzyskaniu danych logowania otwórz FileZilla i wybierz opcję Plik ” Menedżer witryn z górnego menu.

Go to File » Site Manager

Spowoduje to otwarcie wyskakującego okna, w którym można dodać informacje o twojej witrynie internetowej.

Należy kliknąć przycisk „Nowa witryna” i podać tytuł twojej witryny internetowej.

Provide a Title for Your Website

Teraz nadszedł czas, aby wpisz dane logowania, które znalazłeś wcześniej. W sekcji protokołu należy wybrać SFTP, jeśli twój dostawca hostingu go obsługuje. W przeciwnym razie pozostaw opcję FTP.

Zostaniesz poproszony o wpisz twojego hosta. Zazwyczaj jest to twoja nazwa domeny, ale czasami trzeba dodać „ftp.” na początku.

Następnie należy wybrać „Normalny” jako rodzaj logowania, a następnie wpisz swoją nazwę użytkownika i hasło FTP.

FTP credentials

Po wpiszeniu tych danych kliknij przycisk „Połącz”, aby kontynuować. FileZilla zapisze ustawienia twojej witryny internetowej na potrzeby przyszłych logowań i otworzy nowe połączenie FTP z twoją witryną.

Jeśli po raz pierwszy łączysz się z witryną internetową z tego komputera, FileZilla może wyświetlić wyskakujące okienko certyfikatu.

Accept certificate

Możesz zatrzymać to wyskakiwanie, zaznaczając opcję „Zawsze ufaj certyfikatowi dla przyszłych sesji”. Następnie należy kliknąć przycisk „OK”, aby kontynuować.

FileZilla podejmie teraz próbę zalogowania się do twojej witryny internetowej przy użyciu danych uwierzytelniających, które wpiszesz. Po połączeniu zobaczysz dwie kolumny plików i katalogów.

Local and Remote File Lists

Lewa kolumna zawiera listę plików lokalnych na twoim komputerze. Prawa kolumna zawiera listę plików zdalnych na twojej witrynie internetowej. Ten układ umożliwia łatwe przesyłanie plików do i z twojej witryny internetowej.

Wgrywanie plików na twoją witrynę WordPress za pomocą FTP

Teraz jesteś gotowy do przesyłania plików na twoją witrynę internetową. Zacznijmy od czegoś prostego. Prześlemy plik testowy do głównego katalogu naszej witryny internetowej.

Otwórz Notatnik lub TextEdit na twoim komputerze i zapisz pusty plik. Możesz nadać mu nazwę test-upload.txt.

Następnie przejdź do twojego klienta FTP. W kolumnie Witryna regionalna przejdź do katalogu zawierającego plik testowy na twoim komputerze.

Upewnij się, że w kolumnie Witryna zdalna po prawej stronie widoczny jest katalog, do którego chcesz przesłać dane.

Następnie należy kliknąć plik prawym przyciskiem myszy i wybrać z menu opcję „Prześlij”.

Right Click and Select Upload

FileZilla prześle plik z twojego komputera na twoją witrynę WordPress. Tworzy kopię pliku i pozostawia oryginał na twoim komputerze.

Nie zalecamy przesyłania plików metodą „przeciągnij i upuść”, ponieważ jest ona mniej niezawodna. Na przykład, jeśli przypadkowo przeciągniesz plik do katalogu, możesz przesłać go w niewłaściwe miejsce na twojej witrynie internetowej.

Jest to ważne, ponieważ WordPress spodziewa się znaleźć określone pliki i katalogi w określonych lokalizacjach. Przesłanie pliku do niewłaściwego katalogu może spowodować problem.

Na przykład, gdy przesyłasz pliki multimedialne za pomocą FTP, należą one do katalogu wewnątrz /wp-content/uploads/. Motywy powinny być przesyłane do katalogu /wp-content/themes/, a wtyczki do katalogu /wp-content/plugins/.

Aby zobaczyć, jak to działa, możesz ręcznie wgrać wtyczkę na twoją witrynę internetową WordPress.

Najpierw należy pobrać wtyczkę, a następnie ją rozpakować. Znajdziesz katalog zawierający wtyczkę.

Wskazówka: Darmowe wtyczki do WordPressa można pobrać, przechodząc na stronę katalogu wtyczek w witrynie internetowej WordPress.org.

Downloading a WordPress plugin

Upewnij się, że widzisz ten katalog w lewej kolumnie twojego klienta FTP. Następnie przejdź do katalogu wp-content/plugins/ w kolumnie Remote.

Następnie możesz przesłać katalog wtyczki ze swojego komputera na witrynę internetową.

Upload a Plugin

Wtyczka będzie się wczytywać dłużej niż nasz plik testowy.

Po zakończeniu ładowania należy przejść na stronę wtyczek w obszarze administracyjnym WordPress, aby włączyć wtyczkę.

Activate the Plugin

Wgrywanie motywu premium przebiega podobnie. Najpierw musisz pobrać i rozpakować katalog motywu na twoim komputerze. Następnie można go przesłać do folderu
/wp-content/themes/ na twojej witrynie internetowej.

Pobieranie plików z twojej witryny WordPress za pomocą FTP

FTP służy nie tylko do przesyłania plików z twojego komputera do witryny internetowej WordPress. Może być również używany do pobierania plików w celu ich edycji.

Wystarczy kliknąć prawym przyciskiem myszy plik, który chcesz pobrać w kolumnie Witryna zdalna i wybrać „Pobierz” z menu. Plik zostanie przeniesiony do katalogu, który zobaczysz w lewej kolumnie ustawień regionalnych.

Right Click and Select Download

Możesz również użyć FTP, aby wykonać kopię zapasową twoich plików WordPress. Wystarczy wybrać wszystkie pliki i katalogi i pobrać je na twój komputer.

Pamiętaj jednak, że nie jest to pełna kopia zapasowa twojej witryny WordPress. Cała twoja treść jest przechowywana w bazie danych, a nie w pobranych plikach.

Jeśli chcesz również wykonać kopię zapasową twojej treści, możesz to zrobić, tworząc ręczną kopię zapasową bazy danych WordPress.

Wskazówka: Najlepszym sposobem na utworzenie kopii zapasowej WordPress jest użycie wtyczki do tworzenia kopii zapasowych WordPress. Zalecamy korzystanie z Duplicatora, ponieważ zawiera on zaplanowane kopie zapasowe, które można bezpiecznie zapisać w chmurze i przywrócić twoją witrynę internetową jednym kliknięciem, gdy zajdzie taka potrzeba.

Mamy nadzieję, że ten poradnik pomógł ci nauczyć się korzystać z FTP do przesyłania plików na twoją witrynę internetową WordPress.

Możesz również zapoznać się z naszym przewodnikiem krok po kroku dotyczącym zabezpieczeń WordPress dla początkujących lub sprawdzić naszą listę niezbędnych wtyczek WordPress, które pomogą rozwinąć twoją witrynę.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Ujawnienie: Nasze treści są wspierane przez czytelników. Oznacza to, że jeśli klikniesz na niektóre z naszych linków, możemy otrzymać prowizję. Zobacz jak WPBeginner jest finansowany, dlaczego to ma znaczenie i jak możesz nas wspierać. Oto nasz proces redakcyjny.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Najlepszy zestaw narzędzi WordPress

Uzyskaj BEZPŁATNY dostęp do naszego zestawu narzędzi - zbiór produktów i zasobów związanych z WordPressem, które każdy profesjonalista powinien mieć!

Reader Interactions

123 komentarzeZostaw odpowiedź

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Dwaynethewriter says

    So everything is perfect when i use the Edit tool but as soon as I publish, there are no spaces between paragraphs. I tried looking for the Editor in Appearance but my WP Admin page does not have that feature. How do I fix this?

  3. Luis says

    Hello this is a really great tutorial; but i have a question, i dont have much experience, so im trying to set the winSCP, but it gave me this error message conecting to (my host name) acces denied, and ask me to put the pasword again, if some one can help me i will be really happy.

  4. Rachel says

    Thank you. This video saved me! Clear information for someone who would not even call themselves a beginner yet! Much Appreciated

  5. Amálka says

    I installed and connected filezilla to my site, but in Remote site section appear nothing…. What can I do?

  6. Frankl says

    hi….am using a local host ISS7 and web matrix to power up my word press. and i have absolutely no idea of using file zilla to upload my files into wordpress. please i need help… thanks

  7. Barbara says

    You definitely saved my life :)
    I’m one of those people trying to do all by themselves, and got locked out by my site.
    Thank you so much for sharing this!

    • Patricia says

      @Barabra,

      Same here, I’m doing my own business set up. I love this plug-in! Once you understand the structure of WordPress, it’s a blast to use.

      I love their plug-ins and the ease of the design.

  8. Asad says

    I am yet to buy the domain from any hosting provider. I am new to WP. How to configure filezilla for hostname: ***.worpress.com? is it possible?

  9. Carl John Carolino says

    Please help me. After editing the functions.php of my site, this appeared: Parse error: syntax error, unexpected '<' in /home/carljohn/public_html/wp/wp-content/themes/blog-start/functions.php on line 83. How will I resolve this problem?

  10. Priscilla says

    Hi!!
    Hmm… So I’m new at this whole FTP programs thing.. And as I have to completely change and update my company’s website, I wanted to use the domain but switch everything else to WordPress… Do you have any tutorial about this switch?
    Thank you!

  11. Heike says

    Just signed up to WordPress, but unfortunately I have not received an email yet telling me the ftp details. Where can I request them? Is it possible to upload an entire website to WordPress? Thanks for ur help…

  12. Sarah says

    Blah, blah, blah. What the heck is the WordPress FTP server? I know how to use ftp but I don’t know the wordpress server?!?!

    • WPBeginner Support says

      Your WordPress server is the computer where your WordPress site is stored by your web hosting company. An FTP client allows you to connect to that computer and upload or download files. Please contact your web hosting service provider for your FTP login credentials.

      Administrator

  13. Amit Bhuttan says

    Thank You!! This was very useful info & saved a lot of time in restoring the corrupt php file and now my website is up and running again…. saved me a great amount of time in redoing hell lot of development……. I appreciate you.

  14. Mario M. says

    I am a new webmaster, and was sent Login Info for WordPress and the FTP.
    There was also a link and so I clicked on the link and it sent me to a login dialog box. I entered the login info and password then nothing happened. Why???

  15. Dee says

    Great video. The issue I have is I wanted to upload a video file into the media folder using FTP, I followed these steps and could not locate de media folder, how can I do tha?

  16. Brenda Young says

    Thank god for you guys! I got no help from my theme provider, or wordpress.org to fix my problem I locked myself out with Error 500 editing functions.php file and you nailed it down for me!!! Hours spent previously trying to figure out what to do and you saved the day—- YOU ROCK

  17. jeff says

    Can you tell me if I can use wordpress.org as a store? I have a dropship company that can give me FTP files of their products and upload to a website. I have to build a new website so maybe wordpress.org??

  18. Sam Shah says

    Hi

    I installed WordPress via FTP client , But i want to upload another ready to host website in zipped format in which i want to make changes in like i want to change the banners & affiliate links to my own. How can i do the same?. Because i did upload it but could not edit it after that. Can you please help me with this?. Thanks a lot

  19. Elethu Duna says

    Thank you for this. I was locked out of my site yesterday when I edited my functions.php file. After freaking out, taking a deep breath (as instructed by one of your articles), laughing from nervousness, trying a few things and eventually taking time of to clear my head, I finally managed. Took me a couple of minutes. :)

  20. Amy says

    What am I doing wrong? Both Filezilla and Cyberduck say they cannot connect to server. I ran a diagnosis and there is not an issue with connect to the internet. I listed hostgator as my host.

  21. Alex says

    Thank you for your help! This and related posts helped me get through my coding error without freaking out too much. For some reason, my website is still messed up (I didn’t have the functions.php saved, so I just removed the bad code and saved the rest to access my website as admin), but at least it’s not entirely inaccessible!

  22. Ása Steinarsdóttir says

    I locked myself out of my WordPress after I put a code snippet to the function.php file. I know where the error is. I do not have a backup of my files of my website (my computer recently crashed). Can I still enter the function.php somehow and remove the code?
    Or does my hosting company have access to those files?

    • WPBeginner Support says

      These values will be provided by your web hosting provider when you set up your account. You can also get these details from your web hosting control panel. The hostname is your server’s location, and username and password are your FTP login credentials.

      Administrator

  23. George says

    The important things missed in this tutorial are:
    What are the host ftp, username, password and port number to be used with Word Press.
    Without these information, FileZilla can not transfer your files.
    Large file transfer presents a problem. Usually the server will cut off the transfer if your files would take to long time to transfer. To reduce the size of your file, you have to apply some file compressor program before you use FTP. For example the video files are usually very large and need to be compressed before you can use FTP to transfer them.

  24. WPBeginner Staff says

    You are not supposed to be editing the core WordPress files. You can edit your posts and pages using WordPress admin area. Or if you want to change something in your theme then you can do that in Appearance -> Customize section.

    If you still must edit the files using FTP then first make sure that you have a complete backup of your WordPress site.

  25. Brian C Whiteman says

    I have been looking for an hour for an answer..
    What file in FileZilla holds the pages that are installed on my site?
    I want to edit something on a page that I can’t seem to edit in my wp editor.

  26. Eric says

    So I dl’d FileZilla but I’m confused about the 'host’. All I did was hop onto WordPress.com and started my blog, but I don’t have any of the initial emails because I did it a while ago. Is wordpress my host? Or are people using other parties to „host” their sites?

  27. Lindsay Hoffman says

    I am still confused. I logged into FTP but now I am trying to fix the problem. What happened is I tried to put an ad from google adsense into a different sidebar by putting code into my website. That created a syntax error and now I am locked out.

    This website says you can delete a file and hopefully you saved the original. But I didn’t save an original so what do I do. How do I find the spot where I put the code and be able to just delete that select area out so I can get my site back?

    The video doesn’t say that.

    Thanks.

  28. abc says

    I have installed word press now i have to upload files to server. Im using wamp server. How will i upload files n start using wordpress. Basicaly im a bit confused by the term file uploadinh on server

  29. Robert V Hatcher says

    I have a webcam and software and I want to ftp images directly to my wordpress site. I can successfully upload them to /mysite/wp-content/uploads but they don’t show in the Media folder. What am I doing wrong?

    • WPBeginner Staff says

      Files uploaded directly to the uploads folder are not actually uploaded by WordPress so it doesn’t recognize them. When you upload a file using WordPress media uploader, WordPress generates thumbnails for the file, stores file name, and allows you to even store additional details. Manually uploaded files do not go through this process so WordPress has no thumbnails for them and has no record of them in the database.

  30. Ben P says

    Hey WP Beginner,

    I found this article while looking up how to use a ftp to edit WP files. This makes sense but what I really want is to figure out how to update my theme without losing my changed options and editted css files.

    My theme creator says, ” please install the zipped theme file in the regular way on your wp admin. Then go to your ftp and change the language files if you need. Or unzip the theme and copy-paste your language files, then zip it with WinRAR. Finally install and activate via your admin.”

    So I have installed the new theme but when I activate it all of the options reset to default and my edited css is gone. I’ve searched through your site for an article on this subject but I can’t find anything on updating themes without losing edits.

    Thanks!

    • WPBeginner Support says

      Ben once you have uploaded your theme to your website and activated it, you can then edit individual files using FTP. For example after uploading and activating your theme you can download style.css file to your computer make changes to it and upload it back to your server. The FTP client will tell you that a file with the same name already exists what do you want to do? Click on onverwrite and this should work.

      Administrator

  31. Amol says

    hi i have build my wordpress site locally on localhost & i want to upload that site to server i dont know how to do this please help me i am a new to wp

  32. Dan says

    Beginner question! I am totally new to all of this and appreciate all of your videos and lessons. Thank you.

    Can you help me understand something?

    – Can I use EITHER WordPress admin OR an FTP client to do things like install a theme or plugins, work on files, etc.?

    – Can I install a theme via the admin panel and then later connect via FTP and work on the files, etc.?

    Basically, I am trying to figure out if it is either WordPress Admin OR FTP or if I can use either depending on my mood. : )

    – Finally, are there any specific advantages to using one over the other?

    Thank you for your time.

    • Editorial Staff says

      1. Yes, you can either or.

      2. Yes you can install a theme in the admin panel and later use FTP to work on files.

      The rule of thumb we follow:

      Use WordPress admin to do updates // install plugins // write articles
      Use FTP to modify files (i.e add snippets to functions.php etc)

      Administrator

  33. wpbeginner says

    @hillers54 Yeah filezilla is neat… WS_FTP has pretty much all SFTP / SSH settings as well. I love the UI for WS_FTP.

  34. hillers54 says

    Nice one – love the video.

    Now I can put a face to these articles.

    Agree, you must have FTP to get access.

    One thing to mention about Filezilla – they have a couple of secure FTP settings, which my host supports.

    Worth using Filezilla just for that.

Zostaw odpowiedź

Dziękujemy za pozostawienie komentarza. Pamiętaj, że wszystkie komentarze są moderowane zgodnie z naszymi polityka komentarzy, a Twój adres e-mail NIE zostanie opublikowany. NIE używaj słów kluczowych w polu nazwy. Przeprowadźmy osobistą i konstruktywną rozmowę.