> ## Documentation Index
> Fetch the complete documentation index at: https://docs.digitalfyre.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting File & Folder Permissions

File permissions control who can read, write, and execute files on your hosting account. Incorrect permissions are a common cause of website errors and security vulnerabilities.

## Recommended Permissions

| Type                                           | Recommended Value |
| ---------------------------------------------- | ----------------- |
| **Files**                                      | `644`             |
| **Folders**                                    | `755`             |
| **Configuration files** (e.g. `wp-config.php`) | `600`             |
| **Executable scripts**                         | `755`             |

<Warning>
  Never set files or folders to `777`. This grants write access to all system users and is a significant security risk. Our server environment uses CloudLinux with CageFS, which isolates each account — but `777` permissions can still be exploited within your own account's context.
</Warning>

## Changing Permissions in the File Manager

<Steps>
  <Step title="Open the File Manager">
    Log in to Plesk and click **Files** in the left sidebar.
  </Step>

  <Step title="Select the File or Folder">
    Navigate to the item you want to change and right-click it.
  </Step>

  <Step title="Select Change Permissions">
    Click **Change Permissions** from the context menu.
  </Step>

  <Step title="Set the Value">
    Enter the permission value (e.g. `644`) or use the checkboxes to set read, write, and execute access for owner, group, and others.
  </Step>

  <Step title="Save">
    Click **OK** to apply.
  </Step>
</Steps>

## Applying Permissions Recursively

To apply permissions to all files and folders within a directory at once, check the **Apply to all files and subdirectories** option in the Change Permissions dialog before saving.

<Info>
  If your website is throwing a 403 Forbidden error, incorrect folder permissions are often the cause. Ensure your `httpdocs/` folder and its contents are set to `755` for directories and `644` for files.
</Info>
