Symptoms
-
Files uploaded to a WordPress site get incorrect permissions
-
Backups of this site finish with this 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.
Cause
FastCGI settings are turned off in Domains > example.com > PHP. This option enables an upload directory with the correct permissions. Without it, the wrong permissions are inherited.
Resolution
-
Log in to Plesk
-
Go to Domains > example.com > PHP
-
Enable FastCGI settings
-
Press the OK button to save the changes
To fix existing files, follow this guide: How to restore a domain's default permissions