Are you trying to fix a file and folder permission issue in WordPress? Incorrect file and folder permissions can cause errors on your WordPress site while uploading. In this tutorial, we are going to show you how to easily fix file and folder permissions errors in WordPress.

How to fix a file permission problem on Wordpress

How to Permit Files and Permissions on WordPress

Your self-hosted WordPress site resides on a computer from your provider.accommodation. This computer acts as a server and uses special software (generally Apache) to manage your files and send them to browsers.

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

Incorrect file permissions can block WordPress during folder creation, image download, or script execution. Incorrect permissions can also compromise the security of your WordPress site.

In most cases, WordPress will try to warn you that it cannot modify a file, create a folder, or cannot write to disk. However, sometimes you will not be able to see the correct error messages.

Authorization of files and folders on 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 subfolders.
  • 644 for all files.

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

Correction of file and folder permissions by 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 the folders in the root directory, then right-click to select " File permissions ».

File authorization management

This will bring up the dialog box to file permissions.

Now you have to enter 755 in the numeric value field. After that, you have to click on " Recusion in subfolders And select "Apply to folders only ».

Authorization files filezilla

Click the OK button to continue. Your FTP client will start the definition file permissions in folders and subfolders. You will need to wait for it to complete.

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

File authorization management

The file permissions dialog box appears.

This time you need to enter 644 as a numeric value. After that, you need to click on "Recursion to subdirectories in checkbox" and then select " Apply only to files ».

Setting file permissions

Click OK to continue.

Your FTP client will now start updating the file permission for all files on your WordPress site.

We hope that this tutorial will help you correct the file permissions on WordPress. If you have any questions, do not hesitate to ask them.