Categories
josephscott

WordPress File Uploads With IIS

I didn’t have any problems getting WordPress to work on Windows Vista, IIS7 and PHP 5 (ISAPI). That is, until I tried to upload an image. After hunting around and gathering tips and ideas from others here is what I had to do:

  1. Edit upload_tmp_dir option in php.ini. In my case I created an uploads folder in the wwwroot: upload_tmp_dir = “c:inetpubwwwrootuploads”
  2. Create the c:inetpubwwwrootuploads folder and grant the IUSR full control of it
  3. Create the uploads folder in your wp-content folder, for me this was in c:inetpubwwwrootwordpress-trunkwp-contentsuploads, then grant the IUSR full control of it
  4. Restart the IIS service (to pick up the php.ini change)

After that I was able to upload files in WordPress running under Vista and IIS7. I haven’t tried to fine tune the permissions issue, it is possible that this can be done without having to grant full control of those folders to the IUSR account.