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.
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’.
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.
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.
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.
Click on OK to continue.
Your FTP client will now start setting file permission to all files on your WordPress site.