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 poprawić błąd uprawnień do plików i katalogów w WordPress?

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 poprawić błąd uprawnień do plików i katalogów w WordPress?

Nieprawidłowe uprawnienia do plików i katalogów mogą powodować błędy na twojej witrynie WordPress podczas przesyłania. Błędy te mogą uniemożliwić WordPressowi przesyłanie obrazków, zakłócać działanie skryptów i zmniejszać zabezpieczenia twojej witryny internetowej.

W tym artykule pokażemy, jak łatwo poprawić błąd uprawnień do plików i katalogów w WordPress.

Fix file and folder permissions in WordPress

Jak działają uprawnienia do plików i katalogów w WordPress?

Uprawnienia do plików i katalogów w WordPress kontrolują, kto może czytać, uruchamiać lub modyfikować pliki twojej witryny. Twoja firma hostingowa WordPress używa specjalnego oprogramowania, takiego jak Apache, do zarządzania i wyświetlania tych plików w przeglądarkach.

Uprawnienia te są kluczowe, aby WordPress mógł obsługiwać pliki, tworzyć katalogi i wykonywać zadania na serwerze.

Jeśli uprawnienia są ustawione nieprawidłowo, może to uniemożliwić WordPressowi wykonywanie takich czynności, jak tworzenie katalogów, przesyłanie obrazków lub uruchamianie skryptów. Nieprawidłowe uprawnienia zagrażają również bezpieczeństwu twojej witryny WordPress.

Gdy uprawnienia są nieprawidłowe, WordPress zwykle ostrzega o problemach, takich jak brak możliwości edycji plików lub tworzenia katalogów. Czasami jednak możesz nie zobaczyć konkretnych komunikatów o błędach.

Jakie są prawidłowe uprawnienia do plików i katalogów w WordPress?

Prawidłowe ustawienia uprawnień do plików i katalogów umożliwiają WordPressowi tworzenie katalogów i plików. Poniższe ustawienia są zalecane dla większości użytkowników:

  • 755 dla wszystkich katalogów i podkatalogów. Pozwala to właścicielowi witryny internetowej na odczyt, zapis i wykonywanie katalogów.
  • 644 dla wszystkich plików. Dzięki temu właściciel witryny internetowej może odczytywać i zapisywać pliki, podczas gdy inni mogą je tylko odczytywać.

W związku z tym przyjrzyjmy się, jak łatwo poprawić uprawnienia do plików i katalogów w WordPress. Mamy dwie metody i możesz użyć szybkich odnośników poniżej, aby przejść do twojej preferowanej metody:

Metoda 1: Poprawka uprawnień WordPress do katalogów i plików za pomocą wtyczki

Poprawka błędu uprawnień do plików i katalogów WordPress zazwyczaj bierze udział w użyciu klienta FTP. Jeśli jesteś pewien, że możesz rozwiązać ten błąd ręcznie, możesz przejść do drugiej metody.

Jeśli nie, to możesz użyć tej metody z wtyczką All-in-One Security. Ta wtyczka ma funkcję ustawiania zalecanych uprawnień do plików i katalogów za pomocą kilku kliknięć.

Ten poradnik będzie wykorzystywał darmową wersję wtyczki, ale zachęcamy do korzystania z płatnej wersji, aby uzyskać bardziej zaawansowane funkcje. Możesz przeczytać naszą recenzję All-in-One Security, aby uzyskać więcej informacji.

Najpierw zainstaluj wtyczkę All-in-One Security w WordPress. Możesz sprawdzić nasz przewodnik krok po kroku, jak zainstalować wtyczkę WordPress, aby uzyskać więcej informacji.

Po zakończeniu przejdź do WP Security „ File Security. Następnie przejdź do karty „Uprawnienia do plików”.

All in One Security's File Security feature

W tym miejscu wtyczka przeskanuje krytyczne katalogi i pliki rdzenia WordPressa i podświetli wszelkie ustawienia uprawnień, które są niezabezpieczone.

Jeśli wtyczka znajdzie katalog lub plik z błędami uprawnień, w kolumnie „Zalecane działanie” pojawi się przycisk „Ustaw zalecane uprawnienia”.

Aby ją poprawić, wystarczy kliknąć na nią, a wtyczka zmieni uprawnienia pliku lub katalogu.

Setting the recommended file and folder permissions in All in One Security

Po wykonaniu tej czynności kolumna „Zalecane działanie” powinna zostać zmieniona na „Nie wymaga działania”.

Metoda 2: Ręczna poprawka uprawnień WordPress do katalogów i plików

Najpierw musisz połączyć się z twoją witryną WordPress za pomocą klienta FTP, takiego jak FileZilla lub aplikacji Menedżer plików w cPanelu. Po nawiązaniu połączenia przejdź do katalogu głównego twojej witryny internetowej WordPress.

Następnie należy zaznaczyć wszystkie katalogi w katalogu głównym, a następnie kliknąć prawym przyciskiem myszy i wybrać opcję „Uprawnienia plików”.

File permissions in FTP

Spowoduje to wyświetlenie okna dialogowego uprawnień do plików.

Teraz należy wpisz „755” w polu wartości liczbowej. Następnie należy kliknąć pole wyboru „Recurse into subdirectories”, a następnie wybrać opcję „Apply to directories only”.

Fixing folder permissions in WordPress

Kliknij przycisk „OK”, aby kontynuować. Twój klient FTP rozpocznie ustawianie uprawnień dla katalogów i podfolderów. Będziesz musiał poczekać na jego zakończenie.

Następnie należy zaznaczyć wszystkie pliki i katalogi w katalogu głównym twojej witryny WordPress, a następnie kliknąć prawym przyciskiem myszy i wybrać opcję „Uprawnienia plików”.

Setting permissions for all files

Pojawi się okno dialogowe uprawnień do pliku.

Tym razem należy wpisz „644” w polu „Wartość liczbowa”. Następnie wystarczy kliknąć pole wyboru „Recurse into subdirectories”, a następnie wybrać opcję „Apply to files only”.

Setting permissions for files in WordPress

Kliknij „OK”, aby kontynuować.

Twój klient FTP zacznie teraz ustawiać uprawnienia do wszystkich plików w witrynie WordPress.

Jeśli ta metoda nie zadziała, zalecamy skontaktowanie się z dostawcą hostingu. Być może wystąpił błąd po ich stronie i mogą być w stanie Ci pomóc. Dowiedz się więcej z naszego przewodnika na temat tego, jak prawidłowo poprosić o pomoc techniczną WordPress.

Aby dowiedzieć się więcej o plikach WordPress, zapoznaj się z naszym przewodnikiem dla początkujących na temat plików i katalogów WordPress.

Dowiedz się więcej o sposobach rozwiązywania błędów WordPressa

Doświadczasz innego rodzaju błędów na twojej witrynie internetowej WordPress? Zapoznaj się z tymi przewodnikami, aby poprawić problem i zapewnić płynne działanie twojej witryny:

Mamy nadzieję, że ten artykuł pomógł ci poprawić błąd uprawnień do plików i katalogów w WordPress. Możesz również zapoznać się z naszym przewodnikiem na temat poprawek typowych błędów WordPress i sprawdzić nasze najlepsze wtyczki WordPress , które pomogą ci 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

70 komentarzyZostaw 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. Unarine Leo Netshifhefhe says

    I searched around for other articles and I found this other article which mentioned something about using chmod, it qoutes the following „If you are looking to change the permission for the wp-config.php file, you can use the following command for the suggested change as cited earlier –
    chmod 600 wp-config.php”, so I would like to know if this is advisable and where can I find the command line?

    • WPBeginner Support says

      That is mainly a different way to do what we cover in the article and is not always a beginner friendly method.

      Administrator

  3. Unarine Leo Netshifhefhe says

    I have a problem with my file manager there’s a folder which isnt either 644 nor 755, it is 600 and whenever I try to change it, I get an error alert saying that permission operation failed, how can i solve that?

    • WPBeginner Support says

      You would want to reach out to your hosting provider and they should be able to assist you with the permissions issue.

      Administrator

  4. Boris says

    Hi, great article. Just to confirm, I understand step 1 ” you must select all folders in the root directory” and then its the next step that I’m no sure about: „Next, you need to select all files and folders in the root folder of your WordPress site…” So that would be the folder: „Public_Html? Because that’s where the folders I see in your screenshot reside. And your not selecting all the folders again under the root directory as in step 1 right?

    Thanks and best regards

    • WPBeginner Support says

      It depends on your host but in the folders selected you would want to see wp-admin, wp-content, and wp-includes to make sure you are in the correct location.

      Administrator

  5. MBarbz says

    This actually worked with the step one (Permissions and 777). For some reason i wasn’t able to delete two folders from the „Upload”-Folder and then it worked. For some reason i had to re-start Filezilla because it was getting frozen but it worked out. Thanks.

  6. Tracy says

    Is there a reason why it is recommended to use an FTP client to manage user permission instead of managing them in the C-panel?

  7. Stegemüller says

    I was struggling for many hours and could not understand what had happend. I found this guide and followed every step. Now both my main domain and subdomain are working again. Thank you VERY much.

  8. Max says

    Could you tell me what FTP program your using, so the instructions are easier to follow. as most programs don’t use the same terminology it seems.

    • WPBeginner Support says

      If you are still receiving the error, you would want to reach out to your hosting provider and they should be able to assist.

      Administrator

  9. Nicole says

    I’ve been searching like crazy and still can’t find my answer. Any idea what’s going on? When I follow the directions to right click and look for „File Permissions”, I don’t have that option. So I’m stuck and still can’t upload images anymore :(
    Any advice would be much appreciated.

    • WPBeginner Support says

      If you can’t see the folder permissions, we would recommend reaching out to your hosting provider and they should be able to assist.

      Administrator

  10. Jun says

    Hello, I followed this article, but I can’t connect to my website after changing all permissions.

    Do I have to wait?
    Or something wrong happened?

    it would be great if anyone who know about this help me.

    • WPBeginner Support says

      It would depend on if you are seeing an error message on your site, for a starting point we would recommend reaching out to your hosting provider to see if they find any errors.

      Administrator

  11. Bobbi says

    Does anyone have any idea why, every time wordpress automatically updates, I have to go back in and reset file permissions? This page is really useful for fixing this issue, but I just want it to stop!

    • WPBeginner Support says

      You may want to reach out to your hosting provider to ensure there isn’t a setting that could be causing that from their end.

      Administrator

  12. marni says

    How do you handle the request for FTP credentials when you’re learning WordPress on a local host? I read this article but the sharing and permissions menu on a mac does not show a numeric value field.

    • WPBeginner Support says

      It would depend on the specific issue you’re running into but rather than needing FTP for a local installation, you would want to navigate to where the files are on your computer.

      Administrator

  13. MikeMoy says

    For files you state to give permissions 644 for owner,group,others. Why do you give file read permissions (4) to others. Is there some reason others require file read permissions, why are all files not set to 640 ?

  14. Ali Jey says

    Thanks for the tutorial. I could fix this problem for files already on the website, but everytime new files are uploaded they have the same problem again!

    • WPBeginner Support says

      If this issue is constant, we would recommend reaching out to your hosting provider to take a look at possible causes.

      Administrator

  15. Trish says

    having this issue on a locally hosted site that I’m using for test purposes only. So I don’t have FTP access to the files and changing their permissions from Windows Explorer is not working. Any other ideas?
    The main WP directory and the Themes directory are both unwritable according to the WP System Tools.

    • WPBeginner Support says

      You would want to check with the localhost tool you are using for your site as which one you are using would determine the options you have available and the possible issues.

      Administrator

  16. kyrien says

    i accidentally changed the permission on my update file to xxx and now when i try to change it back to 755 it won’t save. Any help?

    • WPBeginner Support says

      If you’re unable to update the file permissions, you would want to reach out to your hosting provider they should be able to assist :)

      Administrator

  17. dominique says

    I’ve made your solution with the permissions 755 and 644, the website works a few seconds and than it breaks agin. And i have to do the permissions again. can you help me?

    • WPBeginner Support says

      If the permissions are reverting then you would want to reach out to your hosting provider to ensure that there isn’t a setting on their end that would modify the permissions as well.

      Administrator

    • WPBeginner Support says

      If the method in this article does not remove that error, you would want to reach out to your hosting provider.

      Administrator

  18. Suzana says

    Hi, I should change file permission:
    / 755 750 WARNING

    Can somebody tell me, where to find this „/” in C panel? To be honest, I don’t know, what this sign / means. Thank you, have a great day! Suzana

    • WPBeginner Support says

      If you’re using the file manager on your host’s cpanel then your site’s files are normally under public_html as that is where most FTPs connect to your host.

      Administrator

  19. Dan says

    Thanks for this article! I thought I had completely fudged my site. None of my uploaded media or even CSS styling (I have no idea why that was effected) was displaying properly.

    I had tweaked my permissions earlier but must have done it incorrectly. Your fix was the solution to my problem!

    Many thanks

  20. Erik says

    Thank you for this insightful article – I will keep it as a ressource for cases of curiousity (and panic, of course :D).
    What I am struggling with are „wp GET”-lookups with result 404 when playing around with cacheing.
    My wordpress installation is in a subfolder named wp, not in the root folder.
    Which rights would I have to give this specific folder?

    Thanks in advance for any help.

  21. imran says

    Hi there, Im having issues in links of FTP and WordPress..first i make a basic html and upload thrugh FTP after sometime i convert that website in using wordpress..now the issue is that the links of those html files and folders which i uploaded in FTP is now not working.just new links are working.The Error is ” No Page Found”
    is there any tool, plugin or way to make alive those FTP Html links??please help me in this issue

  22. Osuji Macdonald says

    my system can not read WordPress properly. the files are not displaying very well. it just showing white icons of the files like a white sheet paper.

  23. Odhran says

    Hi

    I have wordpress installed on a local server and I’m getting 'no data could be retrieved from the servers’ when I try to access the slider revolution library.

    Is this because of the file permissions error described here? I’ve set all of the user permissions to 'full control’ in my index.php file to no avail. I don’t seem to have the option to change to the numeric permissions you describe above. Really stuck on this one so any help would be appreciated.

    thanks & regards
    Odhran

  24. Andy says

    I changed 755 to all folder and 644 to all file. But still cannot upload images to Media and cannot install new plugins.

    PS: I upload whole wp-content folder from another hosting to my new hosting and extract it.

    Please give me some advices.

    Thank you.

    • Cody Cortez says

      This is because you can’t just copy item from a server to another without tweaking the Database. The database must know that the ones you just copied 'exist’

  25. Nazrul Islam says

    Useful but since I’m such a newbie and still learning WordPress, I am stuck. I can’t even seem to log in because of the 500 internal server error. Do you know what I should do?

  26. Ali osama says

    I’ve a problem after i changed permissions to be like above, this error appears :
    „Application error
    An error occurred in the website and your page could not be displayed. If you are the website owner, check your logs for details”

  27. Ethan says

    This works for all types of PHP applications sitting on a website server and not only WordPress. My host denied me access to all folders and files including login page and registration page.

    Little did i know that all my files and folders were still to 777 during local development. After changing folders and files recursively to 755 and 644 respectively it worked.

  28. LB says

    Hi there, Im having issues in that I dont have sufficient permissions to change permissions through the FTP client… unable to create new folders. very frustrating, have spent ages looking for a solution. Running a WP multisite running on Amazon EC2). Thanks.

    • Suyog says

      @LB , you have limited access to your FTP account. Please contact Amazon to get you full access. or if you have server access then change permission in filezilla server.

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ę.