Just like any other Content Management System (CMS), WordPress comes with a few quirks. One of the most annoying is the โfile and folder permissions errorโ, which can prevent you from interacting with your site. That includes creating folders and modifying files โ basically everything you need to run your WordPress website.
The good news is this particular problem has a quick fix. Itโs all a matter of configuring your file and folder permission settings. However, before we dive into how to do it,ย letโs go over how permissions work in WordPress and why theyโre important.
What You Need to Know About File and Folder Permissions in WordPress
Every file and folder onย your computer comes with its own set of permissions. These are rules governing who can interact with them and what they can do with those files. For example, you might set a folder as read-only for non-admin users โ while you canย make changes to that folderโs files, everyone else will still be able to view them.

Unix-based systems use numeric values to represent permission levels.
In short, the file and folder permissions error in WordPress is anย access issue. If you run across this error, youโll know what the problem is right away. WordPress will return a warning message when you try to access your website (something similar toย Unable to create directory).
Making sure your permission settings are on point is critical to keeping your WordPress site safe. After all, you donโt want regular users to have access to your WordPress core files. You might not even want your collaborators to either. As far as weโre concerned, only WordPress administrators should have the necessary permissions to modify your site, beyond posting new content and other small additions.
However, itโs also important to give WordPress itself the necessary permissions so the platform can fulfill its duties. That involves creating folders, posts, pages, creating files, and so on. Without them, the CMS wonโt work as intended, and youโll run into a myriad of errors โ including ones relating to your files and folders.
How to Quickly Fix the File and Folder Permissions Error in WordPress (In 2 Steps)
The quickest way to troubleshoot this issue is to access your site using an FTP client (we recommend FileZilla). However, before you go looking into your WordPress files and folders, we recommend backing up your site manuallyย in case the unthinkable happens and you need to restore your site.
When youโre ready, open your FTP client and log into your server.
Step #1: Fix Your Directoriesโ Permission Settings
Firstly, find your WordPress root folder, which is usually named either public_html, www, or after your siteโs title. Open it, and you should find three folders (wp-admin, wp-content, and wp-includes) along withย several loose files:
Select those three folders, right-click on them, and pick the option that reads File Permissions:
You should see the Change file attributes screen, containingย Read, Write, and Execute permissions for three types of users: the fileโs owner, the ownerโs group, and the regular public. The first number representsย your permissions, the second number represents your group, and the third is your userโs permission level.ย Each type of permission is also represented by a numerical value. Read equals four, Write is two, and Execute is one.
The maximum number you can give is seven, which represents Read, Write, and Executable access for a user โ you can see the numerical representation in the Numeric Value field:
Back to the three folders, we want to set a numerical value of 755 and tick the option that reads Recurse into subdirectories > Apply to directories only:
That means you get full access, WordPress can read and open folders (but not delete them), and the same goes for your users. However, your files will remain unaffected, which brings us to step number two.
Step #2: Change Your WordPress Filesโ Permission Values
Now youโve changed the permissions levels for all of your directories, itโs time to do the same for your files. However, we wonโt be using the same numerical value as we did with folders.
For this step, return to your root directory and select every single file and folder within, including the ones we used during the last step. Now, right-click on them and choose the File Permissions option again:
This time around, youโre going to replace the existing number within the Numeric value field with 644:
In this case, you (as the owner) get to both read and modify every file. As for your visitors and your group, they only get reading access since they donโt own the files. This is the perfect setting from a security standpoint, as it limits the points of entry for potential attacks.
Before you update the permission settings for your files, make sure to tick the option that reads Recurse into subdirectories > Apply to files only. That way, youโll only apply the 644 value to your WordPress files, and your folders will keep the settings you specified during the last step.
All thatโs left now is to try accessing your site again. If you followed the above steps, the file and folder permissions error should be gone, and your website should be fully operational once more. However, if youโre still experiencing an issue, there could some an underlying reason for the error. In this case, we recommend getting in touch your your hosting provider to help solve the issue.
Conclusion
File and folder permission settings can be an intimidating topic, and with good reason. Using the wrong settings can seriously mess with your site โ so a thorough grounding in theย WordPress file structureย is a must.
Once youโve au fait with that โ and youโve accessed your site via FTP โ fixing theย file and folder permissions error only takes twoย steps:
- Change the permission settings for your WordPress folders.
- Repeat the process for all of your files.
Do you have any questions about how to fix the WordPress file and folder permissions error? Ask away in the comments section below!
Article thumbnail image by Trivalium / shutterstock.com.
This little gist helped and does a 644 on files and a 755 on folders.
https://gist.github.com/francisbyrne/3731497
Hi Michael, thanks for the tip! ๐
I’ve had few problems with permissions but I have had huge problems with ownership. In other words, a particular folder has the right permissions for Owner/Group/World but the owner of the folder is not what it’s supposed to be and WordPress can’t access it.
Who should the owner be to allow WP access?
Thanks
Hi Mike! Check out the section labled “File and Folder Ownership for WordPress” in this article: https://www.smashingmagazine.com/2014/05/proper-wordpress-filesystem-permissions-ownerships/.
Great article – thanks.
As someone who is using a windows server rather than linux, it would be great to have an equivalent article.
My options are limited to using file permissions in plesk, as the ftp option does not change the permissions.
I have yet to find an article on the web (believe me I have tried) that turns the type of permission settings listed above into a plesk and windows environment.
Yes I could move to a linux server, but there must be others out there on windows – for whatever reason – and an equivalent article for us would be very much appreciated.
You’re welcome! We’ll keep your suggestion in mind. ๐
Well done. I will try later.
REgards,
Thanks! ๐
If you have shell access, you can do this:
find . -type f -exec chmod 664 {} \;
find . -type d -exec chmod 775 {} \;
Hi Brad, thanks for the suggestions. ๐
WP users should take a course on basic Unix permissions
Hi John,
Very helpful article.
Would you like to share any resource or a good reference on how to do the exact thing on a Unix Shell?
You want to use chmod, Marshall.
https://www.computerhope.com/unix/uchmod.htm