WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Beginners Guide» How to Fix File and Folder Permissions Error in WordPress

How to Fix File and Folder Permissions Error in WordPress

Last updated on March 29th, 2019 by Editorial Staff
175 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Fix File and Folder Permissions Error in WordPress

Are you trying to fix the file and folder permissions error in WordPress? Incorrect file and folder permissions can cause errors on your WordPress site during upload. In this article, we will show you how to easily fix file and folder permissions error in WordPress.

Fix file and folder permissions in WordPress

How File and Folder Permissions Work in WordPress?

Your self-hosted WordPress site lives on a computer run by your WordPress hosting company. This computer acts as a server and uses a special software (usually Apache) to manage your files and serve them to browsers.

File and folder permissions tell the server who can read, run, or modify files hosted on your account. WordPress needs permissions to manage files and create folders on the server.

Incorrect file permissions can block WordPress from creating folders, upload images, or run some scripts. Incorrect permissions can also compromise security of your WordPress site.

In most cases, WordPress will try to warn you that it can’t edit a file, create a folder, or cannot write to disk. However, sometimes you may not see any proper error messages.

Correct File and Folder Permissions in WordPress

The correct set of file and folder permissions allows WordPress to create folders and files. The following settings are recommended for most users.

755 for all folders and sub-folders.
644 for all files.

Let’s take a look at how to easily fix file and folder permissions in WordPress.

Fix File and Folder Permissions in WordPress Using FTP

First, you will need to connect to your WordPress site using an FTP client. Once connected go to the root folder of your WordPress site.

After that select all folders in root directory and then right click to select ‘File Permissions’.

File permissions in FTP

This will bring up the file permissions dialog box.

Now you need to enter 755 in the numeric value field. After that you need to click on ‘Recurse into subdirectories’ checkbox and then select ‘Apply to directories only’ option.

Fixing folder permissions in WordPress

Click on the OK button to continue. Your FTP client will start setting file permissions to folders and sub-folders. You will need to wait for it to finish.

Next, you need to select all files and folders in the root folder of your WordPress site and then right-click to select file permissions.

Setting permissions for all files

The file permissions dialog box would appear.

This time you need to enter 644 in numeric value. After that you need to click on ‘Recurse into subdirectories’ checkbox and then select ‘Apply to files only’ option.

Setting permissions for files in WordPress

Click on OK to continue.

Your FTP client will now start setting file permission to all files on your WordPress site.

We hope this article helped you fix file and folder permissions in WordPress. You may also want to see our guide on how to fix common WordPress errors.

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.

175 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

45 Comments

Leave a Reply
  1. Nicole says:
    Jan 3, 2021 at 10:18 pm

    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.

    Reply
    • WPBeginner Support says:
      Jan 4, 2021 at 11:33 am

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

      Reply
  2. Andy says:
    Dec 2, 2020 at 6:50 pm

    Thanks so much! Worked great.

    Reply
    • WPBeginner Support says:
      Dec 3, 2020 at 10:20 am

      Glad our guide could help you :)

      Reply
  3. Jun says:
    Nov 16, 2020 at 2:41 am

    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.

    Reply
    • WPBeginner Support says:
      Nov 17, 2020 at 11:52 am

      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.

      Reply
  4. Bobbi says:
    Oct 27, 2020 at 11:05 am

    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!

    Reply
    • WPBeginner Support says:
      Oct 28, 2020 at 9:05 am

      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.

      Reply
  5. Harvey says:
    Oct 6, 2020 at 2:25 pm

    Thank you! This article just saved my web page!

    Reply
    • WPBeginner Support says:
      Oct 7, 2020 at 10:10 am

      You’re welcome, glad our guide was helpful :)

      Reply
  6. marni says:
    Sep 3, 2020 at 8:37 pm

    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.

    Reply
    • WPBeginner Support says:
      Sep 8, 2020 at 3:58 pm

      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.

      Reply
  7. MikeMoy says:
    Jul 21, 2020 at 5:24 pm

    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 ?

    Reply
    • WPBeginner Support says:
      Jul 23, 2020 at 9:53 am

      Then users would run into an issue trying to view your content.

      Reply
  8. Ali Jey says:
    Jul 10, 2020 at 5:12 pm

    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!

    Reply
    • WPBeginner Support says:
      Jul 13, 2020 at 11:30 am

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

      Reply
  9. Trish says:
    Jul 10, 2020 at 12:56 am

    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.

    Reply
    • WPBeginner Support says:
      Jul 10, 2020 at 9:17 am

      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.

      Reply
    • Krisjanis Nimanis says:
      Oct 10, 2020 at 4:55 am

      Hello, did You manage to fix your error? And what localhost tool are you using?

      Reply
  10. Md Rasel Rahman Ricky says:
    Jun 26, 2020 at 5:46 am

    Thank you sir….
    This Tutorial is working….

    Reply
    • WPBeginner Support says:
      Jun 26, 2020 at 9:14 am

      Glad our guide was helpful :)

      Reply
  11. Saqib Naqash says:
    Jan 6, 2020 at 6:44 am

    Update php vision to latest

    Reply
    • WPBeginner Support says:
      Jan 6, 2020 at 11:26 am

      Thanks for sharing another recommendation people can try :)

      Reply
  12. kyrien says:
    Jan 2, 2020 at 11:20 pm

    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?

    Reply
    • WPBeginner Support says:
      Jan 3, 2020 at 10:31 am

      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 :)

      Reply
  13. dominique says:
    Oct 30, 2019 at 7:18 am

    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?

    Reply
    • WPBeginner Support says:
      Oct 30, 2019 at 10:06 am

      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.

      Reply
  14. anami says:
    Oct 11, 2019 at 6:12 am

    Installation failed: Could not create directory.

    Reply
    • WPBeginner Support says:
      Oct 11, 2019 at 10:53 am

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

      Reply
  15. Suzana says:
    Jan 24, 2019 at 8:54 pm

    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

    Reply
    • WPBeginner Support says:
      Jan 25, 2019 at 10:34 am

      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.

      Reply
  16. UDAY says:
    Jan 7, 2019 at 7:22 am

    how to solve the error Could not create directory in wordpress uploading thems

    Reply
  17. Dan says:
    Oct 11, 2018 at 11:44 am

    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

    Reply
  18. Erik says:
    May 1, 2018 at 8:08 am

    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.

    Reply
  19. imran says:
    Feb 6, 2018 at 6:43 am

    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

    Reply
  20. Osuji Macdonald says:
    Sep 24, 2017 at 2:18 pm

    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.

    Reply
  21. Odhran says:
    Aug 15, 2017 at 5:59 am

    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

    Reply
  22. Andy says:
    Aug 14, 2017 at 10:20 pm

    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.

    Reply
    • Cody Cortez says:
      Dec 6, 2017 at 1:35 pm

      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’

      Reply
    • Taran jeet says:
      May 25, 2019 at 11:07 am

      Try to Change Max Upload Size and File Size. This will Fix Your Issue. As It Works For Me

      Reply
  23. Nazrul Islam says:
    Jun 19, 2017 at 12:10 am

    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?

    Reply
  24. Ali osama says:
    Apr 25, 2017 at 10:56 am

    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”

    Reply
  25. Ethan says:
    Apr 1, 2017 at 10:38 am

    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.

    Reply
  26. LB says:
    Mar 24, 2017 at 11:46 pm

    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.

    Reply
    • Suyog says:
      Apr 20, 2017 at 3:51 pm

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

      Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
WPForms Logo
WPForms
Drag & Drop WordPress Form Builder Plugin. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2020 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2020)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2020)
    • SiteGround Reviews from 4196 Users & Our Experts (2020)
    • Bluehost Review from Real Users + Performance Stats (2020)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2020 – Step by Step Guide
Deals & Coupons (view all)
Advanced Coupons
Advanced WooCommerce Coupons
Get 50% off the Advanced Coupons smart coupons plugin for WooCommerce.
WP Mail SMTP Coupon
Get $50 off WP Mail SMTP Pro so you can ensure all your WordPress emails reach the inbox.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).
Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress CDN by MaxCDN | WordPress Security by Sucuri.