How to Fix File and Folder Permissions in WordPress

Are you receiving an error message about file and folder permissions? If so, there is a simple and quick way to fix this error. Now, ask yourself, where are your website’s files and folders actually stored? Well, the answer is on one of your web host’s devices. Generally, a computer running Apache will act as a server for these files and folders.

If this is your first time hearing about permissions, then simply think of it as giving someone permission to come inside your house and move stuff around. Permissions should only be given to staff who needs them or to those who are trustworthy. Serious damage can be done to your website through these folders, like this type of error. Today I will demonstrate how to fix file and folder permissions in WordPress.

Why Does the Permission Error Occur

As previously stated, the WordPress files and folders are stored on a computer acting as a server. This computer must also have access to edit and update these files with changes you or anyone else has made to your website. If you have incorrect permissions set up, then you can actually block WordPress from accessing these files which will cause the error message. There is also a chance you will not see an error message at all because it does not have the permission to tell you.

As you can imagine it can be very frustrating if you do not know why or what is happening. There are specific permissions values you need to use for WordPress to always have access to these files. For all folders and sub-folders, you must have 755 set for the permission. For files, you must have 644 set as the value. You will see this is very easy to fix as long as you are aware that it is the actual problem.

How to Fix the File and Folder Permissions Error in WordPress

Today I will demonstrate how to fix the file and folder permissions error in WordPress. Like all errors, there is always a fix and this one is no exception. There are no plugins to install and you won’t actually be spending any time on your WordPress website. You will, however, need access to your cPanel, which is provided by your web host.

Let’s start by accessing the cPanel. The login information is given to you by your web host when you created an account. If you do not have access to cPanel, you will not be able to fix this error and will have to contact someone who can or get the login information again from the web host. Once you are logged in click on the file manager option.

click on the file manager option.

Now navigate through the file manager until you find where the 3 wp folders are located. They are titled wp-admin, wp-content, and wp-includes. Highlight all 3 of them and right-click and select the “Change Permissions” option.

right-click and select the "Change Permissions" option.

A new pop up window will appear which may look slightly different than the one I am getting. In it, you can select the mode, write and execute settings, but if you are not sure what to pick leave them on default or select the ones I have highlighted (default). The key to fixing the error is below. You should see an entry field to input a value for permission. The folders must have 755 entered for WordPress to have access. Click on the “Change Permissions” button.

Click on the "Change Permissions" button.

Your next step is to change every subfolder inside to a 755 permission and change every file to a 644 permission. This process may take a while but just keep highlighting everything to bulk change it. There are some cPanels that allow you to highlight everything and bulk select the files and folders inside, but just go through whichever way you can and change the folders and subfolders to 755 and the files to 644. Once you do this you will no longer get the error message.

Click on the "Change Permissions" button.

Congratulations, the error should be cleared up. The only way this could happen is if someone actually edited the permissions to cause the error. Make sure only trusted staff members who know what they are doing have access to the cPanel or more errors like this can happen.

Always Remain Vigilant About Who Has Permissions

It’s very simple to give someone important permissions to do work, but make sure they are qualified and trusted. For example, if you have problems with a staff member or are planning to fire him/her, then it might be a good idea to remove their permissions before they can take out their frustration on your website. Of course, there are also honest mistakes that happen like someone who is not aware of what something will do to the live site on the back end. It is important to have someone who is fully aware of what everything does and is trustworthy.

Something that is overlooked by many website developers is using a backup. There are a lot of good backup plugins available that make the process a breeze. It is very easy to fix many errors, but if your site is down because of them, a backup is the best choice to avoid downtime. Remember, a reversion that will make you lose a day’s work is usually better than a website that is down for an extended period.

Does your file manager allow you to change the files and folders in bulk or do you need to manually change them by selecting each one? How long has it taken you to fix the error?

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.