The files uploaded via WordPress and/or its plugins on Plesk get incorrect permissions
A backup of a website finishes with the warning:
Not all the data from C:Inetpubvhostsexample.com was backed up successfully:
Unable to get attributes of the file C:Inetpubvhostsexample.comhttpdocswp-contentuploadspicture.png: (5) Access is denied. The file will not be archived.
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
Go to Domains > example.com > PHP Settings
Enable the option FastCGI settings
Click the OK button
Connect to the server via RDP
Open the Command Prompt
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.