Menu
Find entries by Category
Find blog entries by date
  April 2024  
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30     

Previous    Next    Latest  

Wordpress on IIS - setting permissions    
Thu, 19 Nov 2015 10:53

Running Wordpress on IIS in a windows environment requires the permissions on the wp-content/uploads folder to be set carefully.

We have found that we do not allow the whole of wp-content to have write access, as this leads to php injection. Instead, once the theme has been uploaded, access from the internet should be limited to the uploads folder only. The uploads folder should never contain .php files. These will always be spam, and should be removed as soon as possible.

If you are getting the message 'The uploaded file could not be moved to wp-content/uploads/', the most likely cause is that  the permission has not been set correctly.

For uploading images, the permission on the uploads folder needs to be set for IUSR, this is different from IIS_IUSRS.

The IUSR account may not exist, so first add the account, then grant it “Modify” permissions.

You should also check that the windows/temp folder, or the temp folder to be used by PHP, if that is different, has read permission set for IIS_IUSRS (different from above).

 

 

Comments  
Your comments