Making folders writable for PHP when using a Windows IIs server

Many people come across problems using content management systems like Wordpress and Joomla on Windows Servers. One of the problems is folder permissions when you try to upload images or other content. There are thousands of tutorials out there on how to fix this on Linux servers - chmod the properties of the folder to '777' - but what can you do when you are using a Windows server running IIs? The error message I was getting in Wordpress was:

Unable to create directory

C:\Inetpub\vhosts\mydomain.com\httpdocs/wp-content/uploads/2008/04.

Is its parent directory writable by the server?

You may get a similar message from Mambo, Joomla or other content management systems. In the case of Wordpress, the wp-content folder needs to be writable to IIs - or more specifically the internet user on your server. So how do you do this on Windows? Like all these things, its only easy when you know how. Assuming you have access to the server e.g. by remote desktop:

Folder Permissions for IIs user

  • The only permissions set for this user will probably be the 'List Folder Contents'. You need to add the 'Write' permission, by clicking that box.
  • Click 'Apply'.
  • You're done (hopefully).
  • If you have the Plesk Control Panel, you can set these permissions directly in Plesk without having to remote desktop to the server:Padlock

 

Permissions

 

Please let me know if you found this useful.

  1. Click Domains, then the relevant domain, then File Manager. Navigate through the folders so you can see the appropriate directory name
  2. Click on the yellow padlock icon ('Change Permissions for Directory')
  3. Again choose the appropriate IIs user (the one with IUSR_ in the name)
  4. Click the 'Write' option
  5. Click OK.