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. These errors can stop WordPress from uploading images, interfere with scripts, and reduce the security of your website.
In this article, we will show you how to easily fix the file and folder permissions error in WordPress.
How Do 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 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 these permissions to manage files and create folders on the server.
In most cases, WordPress will try to warn you that it can’t edit a file, create a folder, or write to disk. However, sometimes you may not see any specific 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. This allows the website owner to read, write, and execute folders.
- 644 for all files. This allows the website owner to read and write files while others can only read them.
That being said, 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 like FileZilla or the File Manager app in your hosting dashboard, such as cPanel. Once connected, simply go to the root folder of your WordPress website.
After that, you must select all folders in the 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’ into the numeric value field. After that, you must click on the ‘Recurse into subdirectories’ checkbox and then select the ‘Apply to directories only’ option.
Click on the ‘OK’ button to continue. Your FTP client will start setting file permissions for 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 will appear.
This time, you need to enter ‘644’ into the ‘Numeric value’ box. After that, simply click on the ‘Recurse into subdirectories’ checkbox and then select the ‘Apply to files only’ option.
Click on ‘OK’ to continue.
Your FTP client will now start setting file permissions for all files on your WordPress site.
If this method doesn’t work, then we recommend contacting your hosting provider. There might be an error on their end, and they may be able to help you.
We hope this article helped you fix the file and folder permissions error in WordPress. You may also want to see our guide on how to fix common WordPress errors and check out our top picks for the best WordPress plugins to grow your site.