Plesk

The files uploaded via WordPress and/or its plugins get incorrect permissions

Symptoms

Cause

The FastCGI settings option is disabled in Plesk > Domains > example.com > PHP Settings.

By default, PHP uses the directory C:WindowsTemp to upload the files in accordance with the parameter upload_tmp_dir. After that, the files are moved to the necessary folder with permissions that were taken from C:WindowsTemp.

Resolution

  1. Log into Plesk

  2. Go to Domains > example.com > PHP Settings

  3. Enable the option FastCGI settings

  4. Click the OK button

  5. Connect to the server via RDP

  6. Open the Command Prompt

  7. Execute the command below to fix the permissions for already downloaded files:

    C:> plesk repair fs -y example.com

Note: The FastCGI settings specify the parameter upload_tmp_dir for the domain as the folder inside its directory. In that case, all permissions are inherited properly from the Document Root of the domain.